Interpolate objects separately from other entities - #1996
Open
RYRY1002 wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a command (
cl_interp_objects) that acts identically to thecl_interp_npcscommand except targeting objects.Will use
cl_interp's value ifcl_interpis higher thancl_interp_objects.This PR is mainly intended to fix the choppy animations observed on the Sentry Gun. Note the
cl_interpsettings 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_objectsusescl_interp's value ifcl_interpis larger, which by default it will be becausecl_interp_objectsis0.0by 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.