Original post by cnr So, the games that I've made seem to run at 50fps, but then when I open something like Google Chrome, or .. any other 3D accelerated application, the framerate jumps up to over 2000.
When you open Chrome, does your application maintain the high FPS even when it has focus? If the application doesn't have focus, the frames will jump because the OS will lower the drawing priority for it.
Just a thought... When you're running a HL server on your windows machine, the (windows)timer resolution is too low to react on small delta's, so a common trick is to open Window Media Player, which will bump up the timer resolution, and allow for something like 1000fps.
Now, my intuition tells me that something like that would only be required if you're doing any Sleep()'ing in your program. If not, then the problem is something else.
In other words, if you're sleep()ing, try substituting that with a simple loop
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more