Prechádzať zdrojové kódy

Adding mark sync and emit on scene render.

clementlandrin 1 rok pred
rodič
commit
9301301939
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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