Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra frame of latency #2

Open
Rubeer opened this issue Jun 19, 2018 · 0 comments
Open

Extra frame of latency #2

Rubeer opened this issue Jun 19, 2018 · 0 comments

Comments

@Rubeer
Copy link

Rubeer commented Jun 19, 2018

Hello, cool project! Here's something that caught my eye:

https://github.com/Loonride/cppcraft/blob/28d1796499492f8a0eeaff5d31bebc70d73a978a/src/main.cpp#L170

If I'm correct, then the current ordering of getting input, updating the camera and rendering might incur an extra frame of input latency (especially if vsync is enabled). Not really a problem when it runs at 1000 fps, but it could be worth looking at.

I think the order should be:
poll events -> controller update -> camera update -> render -> swap buffers

chaitanya44444 added a commit to chaitanya44444/cppcraft that referenced this issue Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant