Towellie
Towellie3mo ago

Toggle synchronization of RealtimeTransform with Rigidbody by enabling/disabling this component.

Original post and all credit goes to @Michał Wróblewski https://discord.com/channels/393839515074297858/677646675560366141/863111038589206568
Allows to enable/disable synchronization of RealtimeTransform bundled with Rigidbody by enabling/disabling this component. It just forces to kill the remaining running coroutine. The syncing of RealtimeTransform triggers physics syncing every frame, even when objects aren't moving. so once you get to a couple hundred in the scene, the performance hit really adds up. with just a couple hundred objects you can hit multiple ms per frame, even if you're only moving a few of those per frame https://gist.github.com/vrobel/3f209c2adfd0bed256c548b04715c00f
Gist
Allows to enable/disable synchronization of RealtimeTransform bundl...
Allows to enable/disable synchronization of RealtimeTransform bundled with Rigidbody by enabling/disabling this component. It just forces to kill the remaining running coroutine. - ToggleRealtimeTr...
0 Replies
No replies yetBe the first to reply to this messageJoin