Leadwerks #1 That did it.I actually have the function declared globally, so I just have to set it up once:Global wglSwapInterval:Int(interval) "Win32"Thanks!