Limiting FPS in 0.9.0

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.
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: Limiting FPS in 0.9.0

Post 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.
aidenn
Prole
Posts: 15
Joined: Wed Feb 12, 2014 6:13 pm

Re: Limiting FPS in 0.9.0

Post 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.
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: Limiting FPS in 0.9.0

Post 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?
aidenn
Prole
Posts: 15
Joined: Wed Feb 12, 2014 6:13 pm

Re: Limiting FPS in 0.9.0

Post 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).
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: Limiting FPS in 0.9.0

Post 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.
aidenn
Prole
Posts: 15
Joined: Wed Feb 12, 2014 6:13 pm

Re: Limiting FPS in 0.9.0

Post 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. :)
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: Limiting FPS in 0.9.0

Post 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.
aidenn
Prole
Posts: 15
Joined: Wed Feb 12, 2014 6:13 pm

Re: Limiting FPS in 0.9.0

Post by aidenn »

Many games have FPS limiters, most of them are 3D though.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests