Explorar el Código

sceneProf "draw" part also tells the pass name.

clementlandrin hace 9 meses
padre
commit
25c33f61f2
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      h3d/pass/Output.hx

+ 3 - 1
h3d/pass/Output.hx

@@ -74,7 +74,9 @@ class Output {
 	public function draw( passes : h3d.pass.PassList, ?sort : h3d.pass.PassList -> Void ) {
 		if( passes.isEmpty() )
 			return;
-		#if sceneprof h3d.impl.SceneProf.begin("draw", ctx.frame); #end
+		#if sceneprof
+		h3d.impl.SceneProf.begin('draw_${@:privateAccess passes.current.pass.name}', ctx.frame);
+		#end
 		ctx.setupTarget();
 		setupShaders(passes);
 		if( sort == null )