You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to be off by 1.
Suppose the predicted tick is 21444.
21444 - 32 (the constant buffer size) = 21412
This will try to store from 21412 up to and including 21444. Notice that after the loop ends, we store the predicted tick. So this method is storing 33 elements, not 32.
If you try to do a TryGetValue with tick 21412 it will return false being an "Invalid" tick to the buffer.
The text was updated successfully, but these errors were encountered:
FPSSample/Assets/Scripts/Game/Main/ClientGameLoop.cs
Line 446 in 147f471
This appears to be off by 1.
Suppose the predicted tick is 21444.
21444 - 32 (the constant buffer size) = 21412
This will try to store from 21412 up to and including 21444. Notice that after the loop ends, we store the predicted tick. So this method is storing 33 elements, not 32.
If you try to do a TryGetValue with tick 21412 it will return false being an "Invalid" tick to the buffer.
The text was updated successfully, but these errors were encountered: