From 5a0a427a030885ed337c60a903b6bdf8f61bf712 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 31 Dec 2018 17:40:57 +0800 Subject: *misc --- src/libjin-lua/scripts/graphics/graphics.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/libjin-lua/scripts/graphics/graphics.lua') diff --git a/src/libjin-lua/scripts/graphics/graphics.lua b/src/libjin-lua/scripts/graphics/graphics.lua index 70272ca..ae896d0 100644 --- a/src/libjin-lua/scripts/graphics/graphics.lua +++ b/src/libjin-lua/scripts/graphics/graphics.lua @@ -167,15 +167,3 @@ jg.reset = function() jg.unsetFont() jg.unuseShader() end - -jg.getStatsStr = function() - local stats = jin.graphics.getStats() - local str = "draw call: " .. stats.drawCalls .. '\n' - .. "canvas switches: " .. stats.canvasSwitches .. '\n' - .. "shader switches: " .. stats.shaderSwitches .. '\n' - .. "font switches: " .. stats.fontSwitches .. '\n' - .. "textures: " .. stats.textures .. '\n' - .. "canvases: " .. stats.canvases .. '\n' - .. "fonts: " .. stats.fonts - return str -end \ No newline at end of file -- cgit v1.1-26-g67d0