EDIT: This actually seems related to the editor/inspector, as the stutter mostly depends on what is currently selected in the hierarchy regardless of cinemachine. I guess I didn’t test thoroughly enough
I got a weird bug that makes the mouse input stutter when I touch something in the hierarchy or change a value in the inspector while the game is playing.
I believe this is related to cinemachine because deleting the virtual camera and instead making the main camera a child of PlayerCameraRoot instead does not result in the stuttering behavior. This is shown in the video when the game is played the second time at 0:52.
Demonstration:
Replication:
- Create a new 3D project, 2020.3 or higher like the starter asset description says (2020.3.15f2 in this case, but I’ve tried others as well with the same stuttering)
- Import ‘Starter Assets - First Person Character Controller’ 1.0 from the package manager (or the third person character controller, stutter still occurs)
- Choose yes to the dialogue asking to change to Input System and it will restart the editor
- Open and play the Playground scene, the mouse input should be smooth
- Click on stuff in the hierarchy/inspector, mouse input should stutter at this point
Notes:
-
Opening another scene resets the smoothness, but clicking in the hierarchy/inspector brings the stutter back
-
Oddly enough gamepad input remains smooth even when the mouse input stutters.
-
I have tried similar setups using cinemachine independent of the starter assets and the stutter occurs there as well, with the same camera ‘fix’ removing the stutter
-
I have tried this on two additional computers with the same results