浏览代码

Adding mark sync and emit on scene render.

clementlandrin 1 年之前
父节点
当前提交
9301301939
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      h3d/scene/Scene.hx

+ 2 - 0
h3d/scene/Scene.hx

@@ -333,11 +333,13 @@ class Scene extends Object implements h3d.IDrawable implements hxd.SceneEvents.I
 		renderer.start();
 
 		#if sceneprof h3d.impl.SceneProf.begin("sync", ctx.frame); #end
+		@:privateAccess renderer.mark("sync");
 		syncRec(ctx);
 		#if sceneprof
 		h3d.impl.SceneProf.end();
 		h3d.impl.SceneProf.begin("emit", ctx.frame);
 		#end
+		@:privateAccess renderer.mark("emit");
 		emitRec(ctx);
 		#if sceneprof h3d.impl.SceneProf.end(); #end