Page 1 of 1
High UPS run.lua script
Posted: Thu Dec 10, 2020 3:50 pm
by darkfrei
Hi all!
I've tried to make high UPS Löve run.lua script.
The updates per second will be about 200000; frames per second about 60.
You can move slider to change the UPS, also use arrow keys to move the agent. Lines move one-by-one pixel every updating, but yellow moves every new lap.
Re: High UPS run.lua script
Posted: Sun Dec 13, 2020 4:52 pm
by Gunroar:Cannon()
High ups? As in ultra powered supply. I can't really test the .love file now but does it make love.run faster?
Re: High UPS run.lua script
Posted: Sun Dec 13, 2020 6:23 pm
by zorg
updates per second, probably; disabling vsync and removing love.timer.sleep(0.001) from love.run would do that... not that that's a good idea.
Re: High UPS run.lua script
Posted: Sun Dec 13, 2020 6:37 pm
by pgimeno
I think it's all about multiple updates per render. Which is a good concept for some things.
Re: High UPS run.lua script
Posted: Sat Dec 19, 2020 6:43 pm
by darkfrei
zorg wrote: ↑Sun Dec 13, 2020 6:23 pm
updates per second, probably; disabling vsync and removing love.timer.sleep(0.001) from love.run would do that... not that that's a good idea.
Why I cannot set sleep less than 0.001 s?
Re: High UPS run.lua script
Posted: Sun Dec 20, 2020 1:45 am
by BEN1JEN
Interesting, I actually wrote something very similar for
this project I've been working on where I needed to get many inputs per second but wanted to keep the fps around 60.