add profiler logging to OpenComputers screen rendering

This commit is contained in:
Adrian Siekierka 2022-09-07 20:48:48 +02:00
parent fa30722e6b
commit 9efc6d8872

View File

@ -86,7 +86,10 @@ object ScreenRenderer extends TileEntitySpecialRenderer {
RenderState.checkError(getClass.getName + ".renderTileEntityAt: fade")
if (screen.buffer.isRenderingEnabled) {
val profiler = Minecraft.getMinecraft.mcProfiler
profiler.startSection("opencomputers:screen_text")
draw()
profiler.endSection()
}
RenderState.enableLighting()