mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
Prediction: explain insertions complexity
This commit is contained in:
parent
1eecc055c5
commit
39338b413d
@ -115,6 +115,7 @@ public static T CorrectHistory<T>(
|
||||
history.RemoveAt(0);
|
||||
|
||||
// insert the corrected state into the history, or overwrite if already exists
|
||||
// SortedList insertions are O(N)!
|
||||
history[corrected.timestamp] = corrected;
|
||||
|
||||
// the entry behind the inserted one still has the delta from (before, after).
|
||||
|
Loading…
Reference in New Issue
Block a user