Enabling SDL Vsync in Windows |
handcrafter
|
Use double-buffering.
You must have access to a hardware surface for double buffering to be available. Double buffering does not occur unless you're running in fullscreen mode -- so don't test your framerates in windowed mode. See this article to understand the impact double buffering *may* have on your framerate in this regard. |
|||||||||||||
|
InDilemma
|
Hi
Thanks for the reply. I will check again but I think I was already using double buffering. Assuming that I have double buffer, does Vsync runs automaticly ? or is double buffering = Vsync ? Thanks again |
|||||||||||
|
handcrafter
|
In the article link I posted above:
And please read this thread: http://www.gamedev.net/topic/277119-vsync-in-sdl/ In there they say
Note in the top quote, the poster says "allows". Meaning double buffering enables it (AFAIK), but it has to be turned on for your graphics card. You'll need to figure that part out. Please anyone correct me if any inaccuracies here. |
|||||||||||||||
|
InDilemma
|
Thanks handcrafter,
Your explanations made it a lot clear for me. Cheers! |
|||||||||||
|