render loop: poll events twice

That massively reduces latency
This commit is contained in:
Moritz Zwerger 2023-11-02 16:31:13 +01:00
parent c62d6e2678
commit f3e9eb3b87
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -99,6 +99,7 @@ class RenderLoop(
context.window.pollEvents() context.window.pollEvents()
context.window.swapBuffers() context.window.swapBuffers()
context.window.pollEvents()
context.input.draw(deltaFrameTime) context.input.draw(deltaFrameTime)
context.camera.draw() context.camera.draw()