diff options
-rw-r--r-- | bin/game/main.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/game/main.lua b/bin/game/main.lua index e45958f..5582cfc 100644 --- a/bin/game/main.lua +++ b/bin/game/main.lua @@ -161,9 +161,17 @@ function jin.core.onDraw() jin.graphics.unuseShader() local stats = jin.graphics.getStats() + jin.graphics.setColor(100, 100, 100, 255) + jin.graphics.useShader(jin.graphics.Shaders.Shape) + jin.graphics.rect(jin.graphics.RenderMode.FILL, 440, 0, 140, 150) + jin.graphics.unuseShader() + jin.graphics.setColor(255, 255, 255, 255) jin.graphics.print("draw call: " .. stats.drawCalls, 450, 10) jin.graphics.print("canvas switches: " .. stats.canvasSwitches, 450, 30) jin.graphics.print("shader switches: " .. stats.shaderSwitches, 450, 50) jin.graphics.print("font switches: " .. stats.fontSwitches, 450, 70) + jin.graphics.print("textures: " .. stats.textures, 450, 90) + jin.graphics.print("canvases: " .. stats.canvases, 450, 110) + jin.graphics.print("fonts: " .. stats.fonts, 450, 130) end
\ No newline at end of file |