• Advertisement
Sign in to follow this  

question about verticle synching

This topic is 4882 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am just wondering if it is possible to turn on vertical synching to a specified amount when setting a full screen mode, or if I just need to artifically produce the effect using timers and delaying each frame? Currently I am using SDL/OGL and when the user turns off v-synch, the games runs fine but will typically run at a few hundred fps and make the graphics slightly jittery.

Share this post


Link to post
Share on other sites
Advertisement
Eh? How do I stop the user from turning it off? For most graphic card drivers, the option is available by rightclicking on the desktop.

Share this post


Link to post
Share on other sites
Theres no way to force it on if the user has forced it off, however you can request it via the WGL_EXT_swap_control extension, the function call you want being wglSwapIntervalEXT(1); to enable v-sync or replace the 1 with a zero to disable.

Note: This are only requests, the driver is free to ignore it and will do if the user has forced v-sync on or off in the control panel.

Share this post


Link to post
Share on other sites
the user should be able to turn it off/on if they want. same with running in a window/fullscreen let the user decide. any app the starts up fullscreen soon gets deleted on my computer
anyways enuf ranting .
sound slike theres something wrong with the way your base code is contructed, things should run smoother with higher fps, not jerkery

Share this post


Link to post
Share on other sites
Quote:
Original post by zedzeek
the user should be able to turn it off/on if they want. same with running in a window/fullscreen let the user decide. any app the starts up fullscreen soon gets deleted on my computer
anyways enuf ranting .
sound slike theres something wrong with the way your base code is contructed, things should run smoother with higher fps, not jerkery


Well tearing often results when the fps is severely larger than the vsync rate.

Share this post


Link to post
Share on other sites
if the user has chosen it then the user has spoken, the best you can do is inform them of the results of turning v-sync off and let them get on with it, forcing you users to put up with a set framerate is never the right way forward

Share this post


Link to post
Share on other sites
Quote:
Well tearing often results when the fps is severely larger than the vsync rate.


is the tearing what u meant with 'jittery' i assumed it was something else

Share this post


Link to post
Share on other sites
Quote:
Original post by zedzeek
Quote:
Well tearing often results when the fps is severely larger than the vsync rate.


is the tearing what u meant with 'jittery' i assumed it was something else


yes

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement