Why is there sleep(0.001) in default love.run()?
Posted: Tue Jan 08, 2013 11:16 pm
Why is there the following line in the default love.run() function?
Is it just a failsafe to prevent the 100% CPU load when someone pumps new frames without vsync, as fast as possible? Or does it have more complex purpose?
Code: Select all
if love.timer then love.timer.sleep(0.001) end