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

Vertical sync #29

Open
LoganDark opened this issue Nov 7, 2022 · 2 comments
Open

Vertical sync #29

LoganDark opened this issue Nov 7, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@LoganDark
Copy link

Is it possible to perform vertical sync with this library? i.e. deliver a new frame to the screen every monitor refresh, but not any more frequently? It doesn't seem like the library does anything special about it, but I'm not 100% sure how this should work (is it the responsibility of the user to figure out the refresh rate and stuff?).

@john01dav john01dav added the enhancement New feature or request label Dec 23, 2022
@i509VCB
Copy link
Contributor

i509VCB commented Jan 1, 2023

Wayland should be able to implement this with frame callbacks.

@ids1024
Copy link
Member

ids1024 commented Jan 1, 2023

This would probably be better implemented in winit as an event sent to the event loop (rust-windowing/winit#2412). We could make set_buffer block on the frame callback, which Mesa's eglSwapBuffers does when eglSwapInterval isn't zero. But that blocks indefinitely on an occluded window, and should at most be an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

4 participants