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

swap interval, how to set? #52

Open
horup opened this issue Oct 17, 2020 · 6 comments
Open

swap interval, how to set? #52

horup opened this issue Oct 17, 2020 · 6 comments

Comments

@horup
Copy link

horup commented Oct 17, 2020

Is there any way to set the swap_interval to control vsync?
I would like to disable vsync - but found no way to do this.

@felipetrz
Copy link

No updates on this? The forced vsync makes the library basically unusable, even a simple 2D game has extreme lag with it on.

@Mixerou
Copy link

Mixerou commented May 24, 2022

Any updates here? It would be nice to disable vsync.

@not-fl3
Copy link
Owner

not-fl3 commented May 25, 2022

Unfortunately we cant really do much about vsync - on web, for example, browsers send animationFrame's as fast as they feel to and there is no control over it

@ghostsoft
Copy link

Even if this is not possible on web it would be a very welcome feature for desktop. Having no control over the FPS is currently my biggest gripe with Macroquad and I would love to see something like raylib's SetTargetFPS() or at the very least a way to disable vsync to get the program running as fast as it can.

@not-fl3
Copy link
Owner

not-fl3 commented Jan 4, 2023

even on desktop, there is no 100% working way to control the fps.
It could always be overwritten in per-app/systemwide driver settings, you never can be sure that any fps request will be respected by any given computer :(

Just for debugging it is usually easy to run the binary without fps restrictions (like .drirc or vblank_mode=0 on linux or some buttons in nvidia control pannel on windows).

@ghostsoft
Copy link

even on desktop, there is no 100% working way to control the fps. It could always be overwritten in per-app/systemwide driver settings, you never can be sure that any fps request will be respected by any given computer :(

Just for debugging it is usually easy to run the binary without fps restrictions (like .drirc or vblank_mode=0 on linux or some buttons in nvidia control pannel on windows).

Truly appreciate the quick response tho I would really love to have such a debugging feature without having to edit my program in the nvidia control panel (I'm on Windows). Is it possible to have an easier way? I know this is somewhat silly but it's also a feature that's available in everything else I've used, and even if it's just for the programmer (no guarantee for end users) it would still be very welcome!

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

5 participants