2
0
Эх сурвалжийг харах

Adding mark sync and emit on scene render.

clementlandrin 1 жил өмнө
parent
commit
9301301939

+ 2 - 0
h3d/scene/Scene.hx

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