LWJGL Forum

Programming => OpenGL => Topic started by: darkfrog on June 14, 2011, 01:08:47

Title: VSync Causing Choppiness?
Post by: darkfrog on June 14, 2011, 01:08:47
I've got a simple textured cube that I'm rotating on-screen and with vsync enabled it looks choppy as it animates, but if I disable vsync it's absolutely and perfectly smooth.  This seems backwards of what I would expect to be the case.  I understand that vsync will lock for monitor refreshing, but this shouldn't manifest in visual choppiness.  I've got two nVidia GTX 460s with SLI and zero GCing happening.

Any suggestions?
Title: Re: VSync Causing Choppiness?
Post by: kappa on June 14, 2011, 08:31:18
IIRC Vsync only works properly in fullscreen but could be wrong.
Title: Re: VSync Causing Choppiness?
Post by: darkfrog on June 14, 2011, 13:17:12
Thanks, I'll give that a try and see if that makes a difference.
Title: Re: VSync Causing Choppiness?
Post by: avm1979 on June 22, 2011, 21:53:34
Vsync works fine for me in windowed mode...

Are you using windows XP? If so, do you have a Thread.sleep() in your render loop? Longer delays between successive sleep calls could actually make the amount of time it sleeps for rather inaccurate.

This could also be driver-related - I'd update to the latest just in case it solves your headache, before spending too much time trying to debug it.