From aa2bbe0d58434c9717f4f8e5fe136772fdb63996 Mon Sep 17 00:00:00 2001 From: siimav Date: Tue, 15 Oct 2024 20:55:54 +0300 Subject: [PATCH] Add a really handy profiler call --- src/RealAntennasProject/Network/RACommNetNetwork.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RealAntennasProject/Network/RACommNetNetwork.cs b/src/RealAntennasProject/Network/RACommNetNetwork.cs index a31d54e..0ee8917 100644 --- a/src/RealAntennasProject/Network/RACommNetNetwork.cs +++ b/src/RealAntennasProject/Network/RACommNetNetwork.cs @@ -1,5 +1,6 @@ using UnityEngine; using CommNet; +using UnityEngine.Profiling; namespace RealAntennas.Network { @@ -79,6 +80,7 @@ protected override void Update() protected virtual void UpdateEarly() { + Profiler.BeginSample("RA UpdateEarly"); var RACN = commNet as RACommNetwork; if (requestInit) { @@ -98,6 +100,7 @@ protected virtual void UpdateEarly() prevUpdate = tm; graphDirty = queueRebuild = false; } + Profiler.EndSample(); } protected override void OnDestroy()