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.
Re: Capped frame limit for no reason *sigh*
This is true for Windows 7 on my machine as well - 100 FPS
Re: Capped frame limit for no reason *sigh*
In my current project I have heavy loaded background process which is executed as coroutine. Coroutine resumed in love.update().
I'm not against drawing at 60 FPS, but I need updating as fast as possible (or at higher frame rate, 125 for example ). Sleeping prevents this.
I'm not against drawing at 60 FPS, but I need updating as fast as possible (or at higher frame rate, 125 for example ). Sleeping prevents this.
Re: Capped frame limit for no reason *sigh*
I tried to lock FPS to 75. Should work if I can get only 100, right?
Nope, it's ~67.
It's a shame I don't have any restore point of windblowz and I won't reinstall system for this
IMO every game should be turn based
Nope, it's ~67.
It's a shame I don't have any restore point of windblowz and I won't reinstall system for this
IMO every game should be turn based
- 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*
If you have a love.timer.sleep line (or if you're using the default love.run) then try to comment out that line (which might necessitate you to actually copy the function from the wiki first); if you are using vsync to do that locking, you will probably achieve 75FPS.pacman wrote:I tried to lock FPS to 75. Should work if I can get only 100, right?
Nope, it's ~67.
It's a shame I don't have any restore point of windblowz and I won't reinstall system for this
IMO every game should be turn based
If not, again, love.timer.sleep is imprecise.
Edit: You do realize that even turn based games are animated, so fps matters there as well, right?
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*
When I commented sleep() I got 100FPS. Sometimes it skips bit higher.
Checked older project where I had >400FPS and it's capped to 100FPS too. There is no intentional cap or v-sync.
It's hard to say what could make it work like that... I tried to compile program on windblowz so I installed a lot of .net's, sdk's and other "trash"... Maybe that has something to do with the problem.
I'm not keen on using v-sync and leaving this 100FPS cap isn't consistent :F
On Linux without cap I have <300FPS and it's perfect.
The cap method using sleep() is from love wiki and it worked for quite some time
Edit. Simple animation in turn based game can be v-synced 10 times to my refrigerator and transported back in vacuum cleaner - it'll be fine
Checked older project where I had >400FPS and it's capped to 100FPS too. There is no intentional cap or v-sync.
It's hard to say what could make it work like that... I tried to compile program on windblowz so I installed a lot of .net's, sdk's and other "trash"... Maybe that has something to do with the problem.
I'm not keen on using v-sync and leaving this 100FPS cap isn't consistent :F
On Linux without cap I have <300FPS and it's perfect.
The cap method using sleep() is from love wiki and it worked for quite some time
Edit. Simple animation in turn based game can be v-synced 10 times to my refrigerator and transported back in vacuum cleaner - it'll be fine
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: Capped frame limit for no reason *sigh*
Well you could hack your refrigerator and run LÖVE inside of it... it would probably pull more FPS than my PC hahaha
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Re: Capped frame limit for no reason *sigh*
Try love.timer.setObey(true). Rumors has it that this always helps
Re: Capped frame limit for no reason *sigh*
I would reinstall windblowz but I don't have dvd-rom connected and my motherboard is too old for USB boot
That's what happens when there are no problems! Problems!
Re: Capped frame limit for no reason *sigh*
Check if this program works on your computer. It uses a "while" loop to delay the frame rate.
The "love.timer.sleep" function is cursed I tell ya.
The "love.timer.sleep" function is cursed I tell ya.
- Attachments
-
- targetframerate.love
- (1.04 KiB) Downloaded 197 times
Artal, A .PSD loader: https://github.com/EvineDev/Artal
Who is online
Users browsing this forum: Semrush [Bot] and 3 guests