Rebound (another pong)

Show off your games, demos and other (playable) creations.
Posts: 69
Joined: Mon Aug 08, 2011 12:28 pm

Re: Rebound (another pong)

Post by Rad3k » Thu Aug 11, 2011 12:23 pm

Ghuntar, my answer to your question is yes. At least I think that way. On each frame it does the processing and all the stuff that the default does, but then it checks how much time it took and therefore how much time it has until the next frame. And then it just waits this amount of time. That way, unless the processing takes more time than is reserved for a single frame, the game should run with constant framerate, requiring only as much cpu cycles as it really needs. Don't be afraid to change the default, it won't break your game. The function I supplied isn't perfect though, as e.g. it doesn't check if the love.timer module is loaded before using it. But I think I can safely assume that every game that cares about framerate does use timer. I think I'm going to start a separate topic about it, so stay tuned.

Party member
Posts: 383
Joined: Sat Oct 22, 2011 7:37 am

Re: Rebound (another pong)

Post by Santos » Thu Aug 09, 2012 4:56 pm

Now compatible with LÖVE 0.8.0!
(117.73 KiB) Downloaded 110 times

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests