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

How to turn off vsync? #755

Closed
YuichiKamishiro opened this issue Jul 9, 2024 · 2 comments
Closed

How to turn off vsync? #755

YuichiKamishiro opened this issue Jul 9, 2024 · 2 comments

Comments

@YuichiKamishiro
Copy link

My fps cant go above 60.

@Ztry8
Copy link

Ztry8 commented Jul 27, 2024

#360

Unfortunately this is not possible :(

On web browser will send animationFrame as fast as it feels doing so - depending on other tabs activity and so on.
On PC vsync usually depends on the driver settings.

@not-fl3
Copy link
Owner

not-fl3 commented Jul 27, 2024

Just for someone who will come here from google :)

Macroquad do not limit fps, it is not doing anything with fps at all. Some platforms (browsers in particular) gives us no control over fps, some - give siomecontrol over vsync, but it can be overriten by the user in the driver settings (windows), with env variable(linux) and, I guess, performance/battery saving settings (android/ios).

swap_interval : Some(0) in Conf might be a solution, but it does not guarantee a disbled vsync, it really is super platform specific and there are varios way user can enable/disable vsync.
https://docs.rs/miniquad/latest/miniquad/conf/struct.Platform.html#structfield.swap_interval

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

3 participants