Engine
Engine copied to clipboard
Bug: Camera rotation speed is affected by the game's framerate when using "cam_smooth".
Describe the bug
The camera rotation speed when using the cvar cam_smooth changes, depending on the framerate of the game. The viewmodel rotation speed does not seem to be affected.
See video below: https://drive.google.com/file/d/1qKeeWgNwWRzxRH5n9Oso5qAD0U_lVBFa/view?usp=sharing
Settings used in video (issue occurs regardless of the settings used):
cam_smooth_lag 100
cam_smooth_delta 4
To Reproduce
- Enable the
cam_smoothcvar. - Adjust the framerate of the game using the
fps_maxconsole command. - Observe the camera rotation speed changing.
Issue Map
Here is the .vmf and .bsp of the test map featured inside the video I linked above: cam_smooth__speed_fps_issue.zip
Expected Behavior
The camera speed should be consistent regardless of framerate.
Operating System
Windows 11 Home 23H2 Build 22631.4751