Predicton: update comment

This commit is contained in:
mischa 2024-01-11 11:32:21 +01:00
parent d5bbfee793
commit e441ddb88d

View File

@ -144,9 +144,8 @@ public static void InsertCorrection<T>(
}
// client may need to correct parts of the history after receiving server state.
// CorrectHistory inserts the correction at[i], then corrects [i..n].
// in other words, it inserts the absolute value and reapplies the deltas
// that the client moved since then.
// CorrectHistory inserts the entries from [i..n] based on 'corrected'.
// in other words, readjusts the deltas that the client moved since then.
public static T CorrectHistory<T>(
SortedList<double, T> stateHistory,
T corrected, // corrected state with timestamp