0
\$\begingroup\$

In Unity, moving the player causes the camera to jitter. I went to the Profiler, and I saw these spikes: Unity Profiler Spikes On further inspection, all the yellow spikes were WaitForFPS(). I've tried every VSync setting in quality options, but none of them seem to fix this issue.

\$\endgroup\$
1
1
\$\begingroup\$

WaitForFPS isn't really an issue (it has a specific purpose in attaining the target frame-rate of your game).

Is your camera getting moved in the LateUpdate Callback? The most common reason for camera jitter in camera movement scripts is using Update, which is causes the target's movement to happen after the camera's movement is updated, leaving it always "catching up".

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.