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

fix: Change the order of vsync wait and swap buffers to reduce latency #2152

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

fredizzimo
Copy link
Member

What kind of change does this PR introduce?

This changes the order of waiting for vsync and swapping the buffers. This reduces the input latency since reading the inputs and the swap happens during the same vsync interval, rather than different ones.

Did this PR introduce a breaking change?

A breaking change includes anything that breaks backwards compatibility either at compile or run time.

  • No

@fredizzimo
Copy link
Member Author

@9mm. I don't think this fixes your problem. But if you want you can try if it has any effect.

@Kethku
Copy link
Member

Kethku commented Nov 30, 2023

LGTM

@fredizzimo fredizzimo merged commit 2ef0b2a into neovide:main Dec 1, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants