voxeltycoon / issues

17 stars 4 forks source link

Game is smooth but stuttering #1010

Open a11ce opened 1 year ago

a11ce commented 1 year ago

Describe the bug See attached video; the truck and camera move smoothly except for a frequent hitching movement. This happens with all resolution and render settings. It's not a performance issue per se; I hit 60fps with medium graphics load. It also affects UI interaction and the loading bar.

Build version Present on 0.87.3 and 0.88.0.3. Not present on 0.87 (m1_test branch).

Platform MacOS 10.14. Intel processor.

Reproducibility Constant

https://user-images.githubusercontent.com/26006608/211462611-819a5586-8cae-4420-ad2b-067ac0211760.mov

a11ce commented 1 year ago

Speculation from a friend who works with unity professionally:

A few things in unity have always been unsupported with regards to interpolation, most commonly directly setting the transform of a a rigidbody with interpolation enabled. Unity 2020 nearly always handled this smoothly, but Unity 2021 no longer does, which can lead to the smooth-but-stuttering issue shown here. It's inconsistent across platforms because it's effectively undefined behavior. If this is applicable, the fix is to use MovePosition instead, which should match the 2020 behavior.