Page 2 of 2

Re: Limiting FPS in 0.9.0

Posted: Thu Feb 13, 2014 10:05 am
by Azhukar
aidenn wrote:Any way to do clean and healthy frame-Hz relationship with LÖVE?
That's exactly what vsync does. The 1 frame off that you sometimes notice is at best a display error and at worst completely irrelevant.

Re: Limiting FPS in 0.9.0

Posted: Thu Feb 13, 2014 9:04 pm
by aidenn
Well, it's not completely irrelevant. I do agree it's a minor thing and doesn't influence the game's logic, but it's still bugging me. Ah well, no point in worrying about it now.

Re: Limiting FPS in 0.9.0

Posted: Fri Feb 14, 2014 9:05 am
by Jeeper
I think you are going on about this the wrong way. Instead of messing and trying to limit the FPS, why not just make a collision system that works on low FPS as well as high FPS?

Re: Limiting FPS in 0.9.0

Posted: Fri Feb 14, 2014 12:19 pm
by aidenn
That's a good point, but I'm still learning that bit. Could you point me to an easy-to-understand FPS-independent implementation overview? I'm doing standard box collisions. So far I can't get rid of a slight 1-frame jerk as soon as the player hits the ground after jumping (which isn't present with really high FPS).

Re: Limiting FPS in 0.9.0

Posted: Fri Feb 14, 2014 12:33 pm
by Azhukar
aidenn wrote:That's a good point, but I'm still learning that bit. Could you point me to an easy-to-understand FPS-independent implementation overview? I'm doing standard box collisions. So far I can't get rid of a slight 1-frame jerk as soon as the player hits the ground after jumping (which isn't present with really high FPS).
This is becoming increasingly unrelated to FPS and more about collisions, perhaps you would benefit from a separate thread featuring your code and what problems you're experiencing.

Re: Limiting FPS in 0.9.0

Posted: Fri Feb 14, 2014 1:07 pm
by aidenn
Good point. I'll leave the question hanging though, because I'd like to limit the FPS anyway for cases when one does not want to use vsync but still wants to keep CPU usage as low as possible. :)

Re: Limiting FPS in 0.9.0

Posted: Fri Feb 14, 2014 1:12 pm
by Jeeper
aidenn wrote:Good point. I'll leave the question hanging though, because I'd like to limit the FPS anyway for cases when one does not want to use vsync but still wants to keep CPU usage as low as possible. :)
I have never seen a game with this feature though. If one really would want to limit a programs resources this can be done outside of the program.

Re: Limiting FPS in 0.9.0

Posted: Fri Feb 14, 2014 1:24 pm
by aidenn
Many games have FPS limiters, most of them are 3D though.