mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -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")
|
RenderState.checkError(getClass.getName + ".renderTileEntityAt: fade")
|
||||||
|
|
||||||
if (screen.buffer.isRenderingEnabled) {
|
if (screen.buffer.isRenderingEnabled) {
|
||||||
|
val profiler = Minecraft.getMinecraft.mcProfiler
|
||||||
|
profiler.startSection("opencomputers:screen_text")
|
||||||
draw()
|
draw()
|
||||||
|
profiler.endSection()
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderState.enableLighting()
|
RenderState.enableLighting()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user