Open Runemoro opened 5 years ago
This is like a makeup for fluent fps given Minecraft is a game with low tps (20). At the combination of the tick and frame, the tick already happened (i.e. the progress is already calculated in the tick), but the frame is still showing something between the last tick and this tick. Hence lastSomething
and something
makes sense to me.
To clarify:
tick delta
| ------ |
*---------------*---------------*---------------*
^ ^ ^
last right next
tick now tick
The issue is that if right now we're in between two ticks and we're interpolating between two values, it would be weird to call the second value something
, rather than nextSomething
, since that next tick hasn't happened yet.
Using
something
andnextSomething
for interpolated values would make more sense. The intrepolation is currently:where
tickDelta
is a positive float representing the time since last tick. This means that when the entity was last ticked, the correct value of progress waslastProgress
, and it will only becomeprogress
on the next tick (which hasn't happened yet).