Difference between revisions of "Talk:love.run"

(Created page with "For what this delay? <source lang="lua"> if love.timer then love.timer.sleep(0.001) end </source> Without this FPS is up.")
 
Line 4: Line 4:
 
</source>
 
</source>
 
Without this FPS is up.
 
Without this FPS is up.
 +
: Without sleeping between updates, the system will keep computing them as fast as possible, needlessly using up CPU time.
 +
: Even with the above 1ms sleep, a game can produce several hundred FPS.
 +
: You can probably get a more detailed answer on the forums.
 +
: [[User:Hryx|~hryx]] 07:40, 16 January 2014 (CET)

Revision as of 06:40, 16 January 2014

For what this delay?

if love.timer then love.timer.sleep(0.001) end

Without this FPS is up.

Without sleeping between updates, the system will keep computing them as fast as possible, needlessly using up CPU time.
Even with the above 1ms sleep, a game can produce several hundred FPS.
You can probably get a more detailed answer on the forums.
~hryx 07:40, 16 January 2014 (CET)