RevenantX / LiteEntitySystem

Pure C# HighLevel API for multiplayer games
Apache License 2.0
190 stars 22 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.