Skip to content

Implement Window.setVSyncMode() #1910

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

Conversation

EliteMasterEric
Copy link
Contributor

Resolves #1908 by adding a function to set the VSync mode after the window has been initialized.

Includes the ability to set the mode to Adaptive VSync, which disables VSync if the frame rate drops below the monitor's refresh rate.

The function returns false if the VSync mode failed to be applied properly (i.e. attempting to use Adaptive VSync on a device which does not support it).

@dimensionscape
Copy link
Member

I am going to handle this a bit differently, but I appreciate the effort!

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.

Enhancement: Add an option to toggle VSync at runtime, and add an option for adaptive VSync
2 participants