Interpolated vars need reset counters
MOOtant
Join Date: 2010-06-25 Member: 72158Members
When you look at minimap and see players fly through half of the map on spawn/phase it means that client interpolates with old position even though it should only use the new one.
Source has counter modulo 8 for interp vars so interp var reset is signaled by ctr=ctr + 1 % 8. Client resets its interp history on ctr value change.
Source has counter modulo 8 for interp vars so interp var reset is signaled by ctr=ctr + 1 % 8. Client resets its interp history on ctr value change.
Comments
i didn't look at the code, but don't you think incorporating the old positions allows much smoother transitions? if you reset periodically it might stutter a bit on every reset. however, i guess a reset should be done whenever a player is teleported (as in beacon, phase).