Skip to main content
GameDev.net gamedev.net
🔒 Locked

Strange lag problem

Started by sjoa Jul 30, 2010 at 9:53 PM 4 replies 1.7k views
Original Post
sjoa
sjoa

a

Omega147
Omega147
Quote:
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.
sjoa
sjoa

a

Maesse
Maesse
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
sjoa
sjoa

aa

sjoa
sjoa

a

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.