Skip to content

Interpolate objects separately from other entities - #1996

Open
RYRY1002 wants to merge 1 commit into
ValveSoftware:masterfrom
RYRY1002:interp_objects
Open

Interpolate objects separately from other entities#1996
RYRY1002 wants to merge 1 commit into
ValveSoftware:masterfrom
RYRY1002:interp_objects

Conversation

@RYRY1002

@RYRY1002 RYRY1002 commented Aug 13, 2026

Copy link
Copy Markdown

Adds a command (cl_interp_objects) that acts identically to the cl_interp_npcs command except targeting objects.

Will use cl_interp's value if cl_interp is higher than cl_interp_objects.


This PR is mainly intended to fix the choppy animations observed on the Sentry Gun. Note the cl_interp settings in the console window.

Source.SDK.Base.2013.Multiplayer.-.2026-08-13.7-48-37.PM.mp4

This issue is caused by the interpolation not starting far enough in the past (needs to be at least three and a half ticks in the past, 3.5/66ths of a second by default), resulting in the game not knowing where it will be interpolating to when the interpolation starts, giving up and displaying without any interpolation.

Currently, the only way to fix this is by increasing your global interpolation. Many players would prefer not to do this however, as it also comes with a disadvantage in that you are seeing the game world a fraction of a second later than you otherwise would be.

However, given that Engineer buildings are stationary as a rule, many players I've spoken to would be okay with an increased interpolation setting specifically for buildings, which is what this PR provides.

Note

This PR does not make any changes to the default settings or players' existing configurations. It can only be activated with a new console command which currently does not exist.

cl_interp_objects uses cl_interp's value if cl_interp is larger, which by default it will be because cl_interp_objects is 0.0 by default.


This video shows the result of increasing the object interpolation command to be above 3.5/66ths of a second (required for interpolation to work). Note the considerably smoother animations while the Sentry Gun is being built and upgraded.

Source.SDK.Base.2013.Multiplayer.-.2026-08-13.7-49-38.PM.mp4

Global interpolation that affects player movement is unaffected, but Sentry Guns look a lot smoother.

Interpolation of objects can now be done separately from other enitites, controlled by cl_interp_objects.
Will use cl_interp's value if cl_interp is higher than cl_interp_objects.
Similar to the cl_interp_npcs command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant