I am working on a simple game of mine, but I have run into a weird problem.
Using sleep() I am making sure that the game updates around 60 times a second.
I also set window.frameratelimit to 60.
Currently, I have no FPS counter implemented, but when I run the game, it runs terribly slow, something like 15-30 fps. When I open firefox, which is in NO WAY connected to my game whatsoever, and open youtube (does NOT work on other websites!) , and then I run my game, suddenly the framerate is super smooth.
I am using Visual Studio 2013 Express.
How is this possible?
How can something that is not connected to my game, affect its performance?
Is this a weird graphics card bug?
By the way, I am running my game using Local Windows Debugger button in my VS2013Express.