ZDoom / gzdoom

GZDoom is a feature centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities
http://zdoom.org
GNU General Public License v3.0
2.33k stars 528 forks source link

Interpolation fix for clientside prediction #2533

Closed Boondorl closed 2 months ago

Boondorl commented 2 months ago

This is a minor fix for interpolation when playing online as predicted movement was not properly having its prev data reset like a real tick would be. This resulted in jittery player sprites in third person and also potentially fixes the vomit inducing nature of the automap in higher latency.

Note that this isn't a complete fix for this behavior. I still suspect that an extra predicted movement step is occurring on real ticks since the automap both reveals some hidden behavior (this should not be jittery in the slightest when playing via localhost) and when playing on high latency the movement always seems to be slightly out of sync with where the player actually is (which is revealed by no longer moving and letting the position fully reset so it updates in the main viewport).