Skip to content

Commit

Permalink
add profiler logging to OpenComputers screen rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Sep 7, 2022
1 parent fa30722 commit 9efc6d8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9efc6d8

Please sign in to comment.