fix profiler bug
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2025-05-21 14:53:49 -04:00
parent 6ac45b47a2
commit 8517ddbc15

View File

@ -46,10 +46,11 @@ public class EntityProtocol implements ClientProtocolTemplate<EntityMessage> {
@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;
}