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.
High UPS run.lua script
High UPS run.lua script
- Attachments
-
- high-UPS-06.love
- (3.94 KiB) Downloaded 242 times
- Gunroar:Cannon()
- Party member
- Posts: 1141
- Joined: Thu Dec 10, 2020 1:57 am
Re: High UPS run.lua script
High ups? As in ultra powered supply. I can't really test the .love file now but does it make love.run faster?
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: High UPS run.lua script
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.
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: High UPS run.lua script
I think it's all about multiple updates per render. Which is a good concept for some things.
Re: High UPS run.lua script
Why I cannot set sleep less than 0.001 s?
Re: High UPS run.lua script
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.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests