com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

perf: improved runtime performance, dirty objects

Open jeffreyrainy opened this issue 3 years ago • 0 comments

Renames NetwoirkBehaviourUpdater's m_Touched to m_DirtyNetworkObjects Instead of scanning all spawned objects, for each client, then checking visibility and updating, we now scan only over the dirty objects and then over all clients for visibility.

Since few objects are dirty, typically, this improves performance.

Changelog

  • Preformance improvements for cases with large number of NetworkObjects, by not iterating over all unchanged NetworkObjects

DRAFT !!
Not ready. This breaks a bunch of testing. Opened draft PR just to be able to discuss and easily refer to changed lines.

jeffreyrainy avatar Aug 11 '22 17:08 jeffreyrainy