Camera stuttering when strafing while turning

peetlepapers

New member
I have been trying in vain to identify the cause of this issue for a few weeks now. If I strafe while rotating the camera it jerks as if it keeps jumping back to the previous frame or something. It seems this is caused by the camera controller as if I create a new camera that is a child of the character the rotation is smooth. I have tried changing the update location of the character controller to Update instead of FixedUpdate and it still has the same problem. I have also tried disabling all the spring & head bob stuff in the camera controller and that doesnt seem to be the issue either. Any ideas about what could be causing this issue?

Here is a video of the issue, the first part shows the stuttering, then I enable a camera that is a child of the character and you can see the issue dissapear.

https://streamable.com/cia50y

Using opsive 2 btw...
 
Last edited:
Is it a low framerate? If you profile the game at that time you may be able to pinpoint the cause.
 
pretty sure its not low framerate since in the video u can see in the first example I am hovering above 60 & in the second im around 50 but the camera is smooth.
 
yes. seems to be caused by a specific type of movement where you are trying to kind of circle around something while looking at it. I dont really see anything change dramatically in the profiler when I just strafe without turning vs strafing and turning.

https://streamable.com/j9rdi6
 
okay it seems to be (mostly) mitigated if i switch the character update location to Update instead of FixedUpdate. What are the downsides of using update?
 
You will no longer be running on a fixed timestep. In version 3 everything is on a fixed timestep but the interpolation has been improved so if you want to run in a fixed timestep you should be able to upgrade without having any smoothing issues.
 
Top