Presumably, the slowdown is due to the fact that the debugger is connected when the application starts in Visual Studio. This happens even when you created the program in "Release" mode.
To make sure that this is really the source of your problem, try starting the application without a debugger using the command "Start without debugging" or Ctrl + F5 .

There is nothing special in C ++ when you start without debugging, your program will not use a bunch of Windows debugging. With an attached debugger it will be.
source share