View previous topic :: View next topic |
Author |
Message |
Stroggos
Joined: 14 Apr 2009 Posts: 43
|
Posted: Mon Aug 17, 2009 7:49 am Post subject: 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? _________________ Dont even try to port Quake 4 to the ipod |
|
Back to top |
|
 |
Team Xlink
Joined: 25 Jun 2009 Posts: 320
|
Posted: Tue Aug 18, 2009 11:50 pm Post subject: |
|
|
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. _________________
Anonymous wrote: | if it works, it works. if it doesn't, HAHAHA! |
|
|
Back to top |
|
 |
mh

Joined: 12 Jan 2008 Posts: 910
|
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Wed Aug 19, 2009 12:27 am Post subject: |
|
|
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. _________________ What's a signature? |
|
Back to top |
|
 |
Stroggos
Joined: 14 Apr 2009 Posts: 43
|
Posted: Wed Aug 19, 2009 9:56 pm Post subject: |
|
|
thanks guys!!!! _________________ Dont even try to port Quake 4 to the ipod |
|
Back to top |
|
 |
|