mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
love.run(): Sleep after presenting graphics buffer.
Less sluggish controls w/o vsync.
This commit is contained in:
@@ -418,8 +418,8 @@ function love.run()
|
||||
if love.draw then love.draw() end
|
||||
end
|
||||
|
||||
if love.timer then love.timer.sleep(0.001) end
|
||||
if love.graphics then love.graphics.present() end
|
||||
if love.timer then love.timer.sleep(0.001) end
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user