Hello,
I heard, that you can turn off and on vsync with OpenGL. Do somebody know how I can do this?
OpenGL: turning off and on vsync
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
techjunkie
- Addict

- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
-
techjunkie
- Addict

- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
or maybe this... The same thing really...
http://www.opengl.org/discussion_boards ... 00178.html
From this forum,Use this extension if available:
wglSwapControl = (PFNWGLEXTSWAPCONTROLPROC) wglGetProcAddress("wglSwapIntervalEXT");
and this to set the retrace to 1, 0 disables vsync.
wglSwapControl(1);
http://www.opengl.org/discussion_boards ... 00178.html

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
thx, but I don't know what (PFNWGLEXTSWAPCONTROLPROC) is. I think it is a structure, but how is the structure build?
I mean:
and why can't I use the command wglSwapControl() ???
I mean:
Code: Select all
Structure
Value1.l
Value2.f
Endstructure

