浏览代码

Add fps and draw count infos

ShiroSmith 6 年之前
父节点
当前提交
568054080d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hide/view/l3d/Level3D.hx

+ 2 - 0
hide/view/l3d/Level3D.hx

@@ -400,6 +400,8 @@ class Level3D extends FileView {
 			'Triangles: ${scene.engine.drawTriangles}',
 			'Buffers: ${memStats.bufferCount}',
 			'Textures: ${memStats.textureCount}',
+			'FPS: ${Math.round(scene.engine.realFps)}',
+			'Draw Calls: ${scene.engine.drawCalls}',
 		];
 		statusText.text = lines.join("\n");
 		sceneEditor.event.wait(0.5, updateStats);