浏览代码

scene profiler: include TileGroup draws

trethaller 2 年之前
父节点
当前提交
2be2a5c818
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h2d/TileGroup.hx

+ 1 - 0
h2d/TileGroup.hx

@@ -708,6 +708,7 @@ class TileGroup extends Drawable {
 		if( !ctx.beginDrawBatchState(obj) ) return;
 		var min = rangeMin < 0 ? 0 : rangeMin * 2;
 		if( rangeMax > 0 && rangeMax < max * 2 ) max = rangeMax * 2;
+		#if sceneprof h3d.impl.SceneProf.mark(this); #end
 		content.doRender(ctx, min, max - min);
 	}