Remove the outer profiler to LOD rendering

This commit is contained in:
James Seibel
2023-08-11 21:00:09 -05:00
parent c56cbb20c4
commit 27c5f308a8
@@ -488,7 +488,7 @@ public class ClientApi
profiler.push("Render" + (Config.Client.Advanced.Debugging.rendererMode.get() == ERendererMode.DEFAULT ? "-lods" : "-debug"));
try
{
if (Config.Client.Advanced.Debugging.rendererMode.get() == ERendererMode.DEFAULT)
@@ -507,7 +507,9 @@ public class ClientApi
}
else if (Config.Client.Advanced.Debugging.rendererMode.get() == ERendererMode.DEBUG)
{
profiler.push("Render Debug");
ClientApi.testRenderer.render();
profiler.pop();
}
// the other rendererMode is DISABLED
}
@@ -521,7 +523,6 @@ public class ClientApi
MC.sendChatMessage("\u00A74Renderer is now disabled to prevent further issues.");
MC.sendChatMessage("\u00A74Exception detail: " + e);
}
profiler.pop();
}
catch (Exception e)
{