-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Provide a vsync source #640
Comments
What does that mean in practice? As far as I know only swapping buffers with OpenGL blocks until a vsync. |
This means sending a signal when the hardware sends a hardware vsync signal. |
I guess by "signal" you mean an event. I can't find anything related to that on the web. All I can find is how to specify the swap interval, which changes the behavior of |
In the document I quoted above, I see that the hardware event can be watched using |
What's your judgement, @tomaka? Should this be part of Glutin, or an independent crate/lib? |
Looking at |
Servo has an issue by which it attempts to repaint (and animate, etc.) 1500 times per second. For the moment, Glutin can behave as a vsync throttler by blocking until vsync, but discussing with Gecko gfx engineers, we concluded that the best way to solve this is to provide a vsync source, and use it to trigger repaints at a reasonable framerate, as was recently added in Gecko.
I suspect that the best way to add this vsync source would be Glutin itself.
Cc @pcwalton, @nical.
The text was updated successfully, but these errors were encountered: