RevenantX / LiteEntitySystem

Pure C# HighLevel API for multiplayer games
Apache License 2.0
206 stars 25 forks source link

Cache LagCompensatedCount in EntityClassData #6

Closed chrisnobrega closed 1 year ago

chrisnobrega commented 1 year ago

Cached LagCompensatedCount as readonly int in EntityClassData (already caching InterpolatedCount and FieldsCount in same location).

Updated EntityLogic to use LagCompensatedCount rather than recalculating the length every time.