43 Days Ago
Optim: Avoid expensive reserializations when trees de-/spawn - Controlled by TreeManager.UseLazySerialization, enabled by default - Tracked by LazyUpdate scopes - Simplifies some profiling scope names - Added OnTreeDestroyed profiling scope This should save us 0.25ms per cell reserialization on larger worlds. Tests: local multiplayer session, connected, destroyed a tree, reconnected. Confirmed tree impostor wasn't there and profiling scopes showed lazy serialization. Disabled lazy serialization and reconnected - still good and no spikes in profiler on chopping down trees.