Camera position lags behind rotation by 1 frame after teleporting
Partner Rank:
1
Partner Team Reporting:
Everbloom Games
Verification builds:
1.20.80.24_rc0
Summary:
The camera position lags behind the camera rotation by 1 frame after teleporting the player.
Impact:
This leads to extremely jittery motion in cutscenes not using the camera command and could potentially be a trigger for epilepsy. Cutscenes in all content made prior to the camera command (and likely some still in development) are affected. This is particularly visible in our Dungeons & Dragons content, which is heavy on complex cutscenes. Even just the intro, with close-ups of objects on tables.
Repro Steps:
- Open the provided world.
- Set your maximum framerate to 30 in Video Settings for a more noticeable effect.
- You'll have two items in your hotbar: a clock (slot 2) and a feather (slot 4). Holding each will teleport you on a loop, showing the bug in different ways:
- Hold the clock (slot 2). This will teleport you in a room with walls with different colors in each cardinal direction up to a certain altitude - higher up, the walls are all black.
The item will teleport you up by 8 blocks, and 90 degrees to the right each time you touch the ground.
Make sure you're not flying. - Hold the feather (slot 4). Starting at a fixed location, this will teleport you upwards every tick by 0.1 blocks, and by 3 degrees to the right.
Observed Results:
Holding the clock:
Each time you get teleported, you see the next colored wall for one frame before being teleported up to face the black part of the wall, because you appear facing the next wall before moving up.
Holding the feather:
It's hard to explain, it's just extremely jittery, even more so than it used to, which is quite a feat.
Expected Results:
The camera position and rotation should change at the exact same time, and only once per teleport.
Regression Build:
Does not occur in 1.20.70
Screenshots / Videos Attached:
Yes. See this YouTube video. It compares both example scenarios in 1.20.70 and 1.20.80, shown in both 1.0x speed and 0.25x speed. The clips were captured with the game capped at 30 fps.