Smooth following camera, character movement update time ?

Hello,

I have a TPS camera that smoothly follow my player character. For this, I use FMath::VInterpTo.

But when my delta time is varying (frame rate not constant), I have a lot of stuttering on the camera. It does not happen when my frame rate is constant (delta time is not varying).

So I think my camera doesn’t always update at the same time than my character. Can this happen because the character movement component doesn’t update movement at the same time with a simple tick ?

I tried to change my camera tick group to PostPhysics or DuringPhysics but it doesn’t seem to match the character movement update rate. Maybe I’m wrong but I thinks my problem is here.

I have think to use a fixed timestep to update my player character and my camera but it would means I can not use character movement and character methods like AddMovementInput, so it should not be a good solution.

Has someone any idea on how I could fix it ?

Thanks a lot for your help.

Just found an interpolation method that fix the jittering problem. It still remain a small laggy movement when orbiting around player character, but following is better.

If anyone interested:
http://forum.unity3d.com/threads/how-to-smooth-damp-towards-a-moving-target-without-causing-jitter-in-the-movement.130920/#post-884233

If someone has solutions you are welcome, I’m always searching for a better way.

do you find other solution?