From 8517ddbc159d758eed99fa491f7f655639722de2 Mon Sep 17 00:00:00 2001 From: austin Date: Wed, 21 May 2025 14:53:49 -0400 Subject: [PATCH] fix profiler bug --- .../java/electrosphere/net/client/protocol/EntityProtocol.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/electrosphere/net/client/protocol/EntityProtocol.java b/src/main/java/electrosphere/net/client/protocol/EntityProtocol.java index f30583e6..048ca419 100644 --- a/src/main/java/electrosphere/net/client/protocol/EntityProtocol.java +++ b/src/main/java/electrosphere/net/client/protocol/EntityProtocol.java @@ -46,10 +46,11 @@ public class EntityProtocol implements ClientProtocolTemplate { @Override public void handleSyncMessage(EntityMessage message) { - Globals.profiler.beginAggregateCpuSample("EntityProtocol.handleEntityMessage"); + Globals.profiler.beginAggregateCpuSample("EntityProtocol.handleSyncMessage"); LoggerInterface.loggerNetworking.DEBUG_LOOP("Parse entity message of type " + message.getMessageSubtype()); if(Globals.clientState.clientScene != null && Globals.clientState.clientSynchronizationManager.isDeleted(message.getentityID())){ + Globals.profiler.endCpuSample(); return; }