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

chore!: migrate components to runtime assembly [MTT-8472]

Open NoelStephensUnity opened this issue 1 year ago • 0 comments

This PR migrates all scripts from the components assembly to the runtime assembly (it also completely removes the components assembly). This PR also includes some updates to NetworkTransform that help reduce cpu consumption and gc allocations (still more planned work towards this).

MTT-8472

Changelog

  • Added: NetworkProfilingMetrics and NetworkMessageMetrics that provide control over whether profiling and/or message related metrics are enabled in order to make profiling (especially when GCAlloc hunting) easier. These were added to NetworkConfig and can be edited in the NetworkManager inspectorview.
  • Changed: All NGO components were migrated into the Runtime assembly.
  • Changed: NetworkTransform.Update to be NetworkTransform.OnUpdate.
  • Changed: Non-authority NetworkTransform instances now register with NetworkManager and are updated in the NetworkManager.NetworkUpdate method.
  • Removed: NetworkRigidbodyBase.FixedUpdate method that is no longer needed to update NetworkTransform.
  • Removed: NetworkTransform.Update.
  • Removed: The components assembly.

Testing and Documentation

  • No tests have been added.
  • Documentation changes are necessary (wip)

Breaking Changes

This PR contains breaking changes to:

  • NetworkTransform

NoelStephensUnity avatar May 03 '24 23:05 NoelStephensUnity