mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
add profiler logging to OpenComputers screen rendering
This commit is contained in:
parent
fa30722e6b
commit
9efc6d8872
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user