perf: PredictedRigidbody doesn't log "Separating Physics" anymore

This commit is contained in:
mischa 2024-03-13 19:37:12 +08:00 committed by MrGadget
parent 75fb9ff57c
commit ed12063f49

View File

@ -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!