- Home /
Camera jittering at 30 fps. Is it Unity bug?
This sample project is very simple and stable in 60fps but when i put the fps to 30 the visuals become Jittering. Sometimes even at 60 frames.
Scene has 3 static background objects and a moving sphere.
I used LateUpdate () to move the camera.
When you look at the screen that is rendered while the camera is moving, you will feel the jittering.
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = 30;
Move camera at LateUpdate()
That's all.
If you remove the frame limit and render at 60 frames, the rendering will be smoother, but you still see it bouncing occasionally.
I've tried several things but haven't found a way to render the screen smoothly at 30 fps.
My guess is that the render screen is not complete and so renders the old screen buffer.
It is also reproduced in the editor. And same on device.
It seems to be a Unity bug.
yes. Update(), FixedUpdate(), LateUpdate(). I tryed all. I don't think this is a problem with the update.
Answer by ndream · Dec 18, 2019 at 07:46 AM
Found the cause.
The problem was that the display rendering was not constant.
Achieve proper frame pacing
https://developer.android.com/games/sdk/frame-pacing#use_android_choreographer_by_itself
What's the "Optimized Frame Pacing" feature?
https://forum.unity.com/threads/whats-the-optimized-frame-pacing-feature.636847/#post-4291420
Your answer