Page 2 of 2

Re: Framerate increases when window is not in focus

Posted: Wed Apr 10, 2013 12:35 am
by Knuxchan
But even when running the fixed love file from that previous topic, if the game window is out of focus, then the background goes really fast. The DT is in the update function, too...

I don't understand it...

Re: Framerate increases when window is not in focus

Posted: Wed Apr 10, 2013 1:34 am
by substitute541
Hmm.. It does appear to run faster. I think it moves at the same speed (not the FPS), only smoother.

(Using Windows 7 btw)

Edit: I think the framerate increasing is the effect of the OS.

Re: Framerate increases when window is not in focus

Posted: Wed Apr 10, 2013 1:56 am
by Knuxchan
I am using Windows 7 as well. How do I prevent this from happening? Or should I just have it pause the game when it's not in focus?

Re: Framerate increases when window is not in focus

Posted: Wed Apr 10, 2013 4:14 am
by substitute541
Knuxchan wrote:I am using Windows 7 as well. How do I prevent this from happening? Or should I just have it pause the game when it's not in focus?
If it's an action/adventure game, you might want to pause it so the player can't be killed while AFK.

Edit: You can also limit frame rates, although I don't know how to do that >->....