فهرست منبع

Adding benchmark current ID (to restore previous mark).

clementlandrin 1 سال پیش
والد
کامیت
d8c9e230a5
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      h3d/impl/Benchmark.hx

+ 6 - 0
h3d/impl/Benchmark.hx

@@ -386,6 +386,12 @@ class Benchmark extends h2d.Graphics {
 		if( measureCpu ) q.value = haxe.Timer.stamp() * 1e9;
 		if( measureCpu ) q.value = haxe.Timer.stamp() * 1e9;
 	}
 	}
 
 
+	public function getCurrentId() {
+		if ( currentFrame != null )
+			return currentFrame.name;
+		return null;
+	}
+
 	public static function takeControl( app : hxd.App, ?s3d : h3d.scene.Scene ) @:privateAccess {
 	public static function takeControl( app : hxd.App, ?s3d : h3d.scene.Scene ) @:privateAccess {
 		if( s3d == null ) s3d = app.s3d;
 		if( s3d == null ) s3d = app.s3d;
 		var cur = hxd.System.getCurrentLoop();
 		var cur = hxd.System.getCurrentLoop();