LWJGL Forum

Programming => OpenGL => Topic started by: RiverC on March 17, 2012, 17:56:33

Title: Smooth translations
Post by: RiverC on March 17, 2012, 17:56:33
Now, this may be because I'm currently using shaders for the task or translations, but I've noticed that sometimes the animation has 'folds' in it, kind of a jaggedness that makes it seem like the frame is not updating smoothly to the new frame.

It's not really a jaggedness around objects; but a jaggedness between frames. It often happens 'on' a face and overall the effect is somewhat disconcerting.

I am forcing synch to 60fps, though it varies how close to 60fps it is. This might be the issue (that the uneven refresh rate is causing confusion in my optical processing.)

Has anyone here run into this problem before or have an idea how to fix it?
Title: Re: Smooth translations
Post by: CodeBunny on March 17, 2012, 21:31:45
Are you talking about Vsync?
Title: Re: Smooth translations
Post by: RiverC on March 19, 2012, 09:26:56
Yeah. Though the command I'm using at the end of my run loop is just

Display.sync(hertz);
Title: Re: Smooth translations
Post by: CodeBunny on March 19, 2012, 14:04:31
Then either turn V-Sync on, or make your target FPS lower.
Title: Re: Smooth translations
Post by: RiverC on March 20, 2012, 03:20:15
V-sync seemed to have helped, which as it turns out, is actually another command altogether in Display. Good to know. Of course, even though it says it will not *change* the hertz of the display unless you go fullscreen, it did indeed smooth out the jaggedness. Thanks!