Skip to content

Commit e6db841

Browse files
committed
fixed typo
snapshot time is the time stored in the snapshot, not the time when it was received
1 parent 627fb21 commit e6db841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

implementation_details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ if received_newer_server_update {
299299

300300
// Calculate the current interpolation.
301301
// Network conditions are assumed to be constant between updates.
302-
current_interpolation_delay = last_update_received_time + time_since_last_update - playback_time;
302+
current_interpolation_delay = (latest_snapshot_tick * timestep) + time_since_last_update - playback_time;
303303

304304
// I'm negating here because I'm scaling time and not frequency.
305305
// i.e. 110% freq => 90% time

0 commit comments

Comments
 (0)