Explorar o código

Adding mark sync and emit on scene render.

clementlandrin hai 1 ano
pai
achega
9301301939
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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