Author Topic: &H3DA And Other bits running in the background of programs.  (Read 11750 times)

0 Members and 1 Guest are viewing this topic.

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
as jim said i was having a nightmare trying to get a decent vsync going in opengl but he managed to get it going for me heres his code.

Code: [Select]
#include "windows.bi"

'this comes after you set your screen up
type PFNWGLSWAPINTERVALFARPROC as sub(byval interval as integer)
dim wglSwapIntervalEXT as PFNWGLSWAPINTERVALFARPROC
wglSwapIntervalEXT = cast(PFNWGLSWAPINTERVALFARPROC,wglGetProcAddress("wglSwapIntervalEXT"))
wglSwapIntervalEXT(1)

if you change wglSwapIntervalEXT to wglSwapIntervalEXT(0) then vsync will be disabled.
Challenge Trophies Won: