love.run(): Sleep after presenting graphics buffer.

Less sluggish controls w/o vsync.
This commit is contained in:
vrld
2012-10-01 22:11:51 +02:00
parent a39ddc9f1a
commit 5e3e24dcfb
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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