Capped frame limit for no reason *sigh*
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Capped frame limit for no reason *sigh*
just a fyi; love.timer.sleep() is imprecise at best so that could be a reason if you are calculating the sleep times like that; but this is just a guess.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: Capped frame limit for no reason *sigh*
It worked like a charm for weeks and it works on other OS and for other people
Also after commenting these lines I get same fps cap with random it_works_too_fast spikes.
Also after commenting these lines I get same fps cap with random it_works_too_fast spikes.
Re: Capped frame limit for no reason *sigh*
Well, I copied standard function love.run() from Wiki page and commented out line "if love.timer then love.timer.sleep(0.001) end" at the end.
And now it shows 125 FPS (Windows 7 64-bit and Xubuntu 13.10 64-bit)
Though I don't understand what is the purpose of this line...
And now it shows 125 FPS (Windows 7 64-bit and Xubuntu 13.10 64-bit)
Though I don't understand what is the purpose of this line...
Re: Capped frame limit for no reason *sigh*
Tried and didn't work on my box... and I actually would be surprised if it didarampl wrote:Well, I copied standard function love.run() from Wiki page and commented out line "if love.timer then love.timer.sleep(0.001) end" at the end.
And now it shows 125 FPS (Windows 7 64-bit and Xubuntu 13.10 64-bit)
Though I don't understand what is the purpose of this line...
And seriously, I can understand the need for a higher update rate (in cases like fighting games, more frequent input polling makes sense), but the fps beyond 60 is not that useful; in terms of eliminating temporal aliasing or screen shuttering, using interpolation would be a better approach (and more efficient if taking things like power consumption into consideration)
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Capped frame limit for no reason *sigh*
Run your project, then open the equivalent of a task manager on your OS; you will probably see one of your CPU cores being consumed 100%... that is unless vsync is enabled, i think.arampl wrote:Well, I copied standard function love.run() from Wiki page and commented out line "if love.timer then love.timer.sleep(0.001) end" at the end. (...) Though I don't understand what is the purpose of this line...
I actually solved this problem for myself with a custom game loop / love.run function, but i needed to bork some things in the process; namely love.timer.getDelta and getAverageDelta. (or i could have just borked getFPS though; but either one or the other)caldur wrote: And seriously, I can understand the need for a higher update rate (in cases like fighting games, more frequent input polling makes sense), but the fps beyond 60 is not that useful; in terms of eliminating temporal aliasing or screen shuttering, using interpolation would be a better approach (and more efficient if taking things like power consumption into consideration)
*In the pastebin'd file, i commented out love.timer.sleep for experimental purposes; it works both ways though, and there are some vars that are pulled in from other files as well, so this isn't an out-of-the-box working snippet
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: Capped frame limit for no reason *sigh*
Yep, that's basically what I do in my projects, too. The thing about timestep is, there is the constant issue of decoupling it from rendering vs. making things look smooth, and also maintaining fixed timestep vs. catering to low perf machines... and above all better keep it simple and straightforward.zorg wrote: I actually solved this problem for myself with a custom game loop / love.run function, but i needed to bork some things in the process; namely love.timer.getDelta and getAverageDelta. (or i could have just borked getFPS though; but either one or the other)
*In the pastebin'd file, i commented out love.timer.sleep for experimental purposes; it works both ways though, and there are some vars that are pulled in from other files as well, so this isn't an out-of-the-box working snippet
That sleep for 1ms is just to prevent rendering from going crazy without limits I assume...
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Capped frame limit for no reason *sigh*
It's more like for the process to not hog your processor as i've said; and if i remember correctly, if you do have vsync on in your conf.lua, then you shouldn't sleep it; otherwise you should, but then it gets a bit wonky.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: Capped frame limit for no reason *sigh*
caldur, zorg may be you right guys, but why it behaves differently on different platforms? On Windows it gives no more than 100 FPS, on Linux - 125 FPS.
- Zilarrezko
- Party member
- Posts: 345
- Joined: Mon Dec 10, 2012 5:50 am
- Location: Oregon
Re: Capped frame limit for no reason *sigh*
Don't know if it was mentioned before. But when I had windows 7, I had pretty good frames. I then upgraded to windows 8.1 and now I notice all my frames for every game ever is lower (I thought windows 8 was suppose to optimize my 8 cores for performance D';). But yeah, I get 64 frames as well. Something weird with windows 8.
Re: Capped frame limit for no reason *sigh*
There's nothing weird about windows being weirdZilarrezko wrote:Something weird with windows 8.
Who is online
Users browsing this forum: No registered users and 2 guests