Framerate increases when window is not in focus

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Knuxchan
Prole
Posts: 15
Joined: Wed Apr 03, 2013 4:06 am

Re: Framerate increases when window is not in focus

Post 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...
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: Framerate increases when window is not in focus

Post 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.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
Knuxchan
Prole
Posts: 15
Joined: Wed Apr 03, 2013 4:06 am

Re: Framerate increases when window is not in focus

Post 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?
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: Framerate increases when window is not in focus

Post 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 >->....
Currently designing themes for WordPress.

Sometimes lurks around the forum.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests