Server Authority: Moving your character + camera at the same time causes rollbacks, when you're above 144FPS

Whenever I move my camera and move at the same time, it’ll trigger a rollback.

Reproduce

  • Join this game:
    Roblox Game
    rbxl file (229.4 KB)
  • Have over 60 FPS (seems to happen more often with 144+)
  • Walk around and move your camera at the same time
  • Rollbacks are triggered

This is especially noticeable with higher ping:

Specs

OS: Windows 10 Pro
CPU: AMD Ryzen 9 7950X 16-Core Processor
Memory: 32.0 GB
GPU: NVIDIA GeForce RTX 3090 Ti (24 GB)

5 Likes

This issue seems to be caused by player:GetCameraState() API not working well under BindToSimulation. At above 60 FPS, it causes rapid mispredictions and thus rollbacks when camera state is changed. Utilizing InputActions instead of this API (the old behavior) fixes this issue.

3 Likes