Search Issue Tracker
Fixed
Fixed in 2.6.11, 2.9.0-pre.1
Votes
0
Found in [Package]
2.5.0
2.6.10
2.7.8
2.8.0
Issue ID
CMCL-402
Regression
No
Mouse input is affected by fps
[https://forum.unity.com/threads/cinemachine-freelook-x-new-input-system-crazy-sensitivity-issue.927714/#post-7423121]
Reproduction Steps:
- Setup a FreeLook with Mouse Input
- CM Brain must be set to update on FixedUpdate
- camera rotation speed affected by FPS (test this by limiting the FPS with Application.targetFrameRate)
Reason for bug:
Mouse input is inherently frame rate independent. Unity’s input is just a wrapper for direct x input. Direct x queries the input state every frame and makes the data it has aggregated available to us (Unity). This is why you need to read input in the normal Update function and not FixedUpdate. It needs to be read at the same frequency that direct x makes the information available. Unity gives us the distance the mouse moved since the last time direct x made a query.
Unfortunately CM vcams read and process input whenever they are updated by the Brain - and that might be FixedUpdate.
The fix would be to add a mechanism that ensures that input is only ever processed once per render frame.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (fix version 2.9.0-pre.1):
Fixed in latest release
Resolution Note (fix version 2.6.11):
Fixed in latest release
Resolution Note:
Fixed in latest release