macroquad icon indicating copy to clipboard operation
macroquad copied to clipboard

swap interval, how to set?

Open horup opened this issue 5 years ago • 3 comments

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.

horup avatar Oct 17 '20 18:10 horup

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

felipetrz avatar May 04 '21 15:05 felipetrz

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

Mixerou avatar May 24 '22 21:05 Mixerou

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

not-fl3 avatar May 25 '22 02:05 not-fl3

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.

ghostsoft avatar Jan 04 '23 00:01 ghostsoft

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).

not-fl3 avatar Jan 04 '23 03:01 not-fl3

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!

ghostsoft avatar Jan 04 '23 03:01 ghostsoft