mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
perf: PredictedRigidbody doesn't log "Separating Physics" anymore
This commit is contained in:
parent
75fb9ff57c
commit
ed12063f49
@ -166,7 +166,7 @@ protected virtual void CreateGhosts()
|
|||||||
// skip if host mode or already separated
|
// skip if host mode or already separated
|
||||||
if (isServer || physicsCopy != null) return;
|
if (isServer || physicsCopy != null) return;
|
||||||
|
|
||||||
Debug.Log($"Separating Physics for {name}");
|
// Debug.Log($"Separating Physics for {name}"); // logging this allocates too much
|
||||||
|
|
||||||
// create an empty GameObject with the same name + _Physical
|
// create an empty GameObject with the same name + _Physical
|
||||||
// it's important to copy world position/rotation/scale, not local!
|
// it's important to copy world position/rotation/scale, not local!
|
||||||
|
Loading…
Reference in New Issue
Block a user