Possible "Easy" VSYNC???
Moderator: InsideQC Admins
5 posts
• Page 1 of 1
Possible "Easy" VSYNC???
I want to add vsync from FitzQuake but im not that great with OpenGL. Can anyone add a tutorial or advice on how to add it?
- Stroggos
- Posts: 50
- Joined: Tue Apr 14, 2009 11:40 am
- Location: Australia
Well, what engine are you adding it to?
First thing you should do is download the FitzQuake source and find out what is required for Vsync and basically add that to your engine, that is the explanation in its easiest forum, it is often times harder then this.
First thing you should do is download the FitzQuake source and find out what is required for Vsync and basically add that to your engine, that is the explanation in its easiest forum, it is often times harder then this.
- Team Xlink
- Posts: 368
- Joined: Thu Jun 25, 2009 4:45 am
- Location: Michigan
Docs:
win: [ur]http://www.opengl.org/registry/specs/EXT/wgl_swap_control.txt[/url]
I'm not sure about glx... this one seems to be similar
glx: http://www.opengl.org/registry/specs/SGI/swap_control.txt
however, 0 is an error, and will not disable vsync again.
But yeah, use wglGetProcAddress to get the function name you want, then pass it a 0 to disable vsync, or 1 to enable vsync, or 2 to sync each frame with every 2nd refresh.
If nothing else, this should give you a bit of a clue what to search for.
win: [ur]http://www.opengl.org/registry/specs/EXT/wgl_swap_control.txt[/url]
I'm not sure about glx... this one seems to be similar
glx: http://www.opengl.org/registry/specs/SGI/swap_control.txt
however, 0 is an error, and will not disable vsync again.
But yeah, use wglGetProcAddress to get the function name you want, then pass it a 0 to disable vsync, or 1 to enable vsync, or 2 to sync each frame with every 2nd refresh.
If nothing else, this should give you a bit of a clue what to search for.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
