Smooth translations

Started by RiverC, March 17, 2012, 17:56:33

Previous topic - Next topic

RiverC

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?

CodeBunny

Are you talking about Vsync?

RiverC

Yeah. Though the command I'm using at the end of my run loop is just

Display.sync(hertz);

CodeBunny

Then either turn V-Sync on, or make your target FPS lower.

RiverC

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!