I noticed something odd and I think it is related to something I have no knowledge in : VSync.
I have a simple object with a camera following it ( I tried parenting it or using a script to match transform ).
I get the input with InputRaw for horizontal, and move the object using Move().
When I press the keys to make the object move, it will move correctly and smoothly, but above I would say 1 second I stay pressing down the key, there is some micro stuttering happening.
When I release the key and press again, motion is smooth for a second and then stutter happen again.
I am moving with Update(), but also tried in FixedUpdate() and the issue remains the same, and I can’t think of anything that could cause this.
I “figured it out”, for some reason, if I stay with my camera selected in the hierarchy, it will create stutter.
However, If I select nothing, everything is smooth and cool…
I don’t know why this is happening, I don’t think I ever saw this issue on the forums yet,
Displaying an object in the inspector forces its data to be serialized and deserialized so that it can be displayed and edited. That might be causing rounding errors in the floating-point math or something like that. (I don’t think that explanation would work if the camera was a child object of the player and not moving independently, though.)