Sign in to follow this  
Khaos Dragon

question about verticle synching

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this