Browse Source

added beginFrame for syc/timing purposes

ncannasse 7 years ago
parent
commit
5bf8c0d3db
1 changed files with 3 additions and 0 deletions
  1. 3 0
      h3d/Engine.hx

+ 3 - 0
h3d/Engine.hx

@@ -268,6 +268,9 @@ class Engine {
 		drawCalls = 0;
 		targetStack = null;
 		needFlushTarget = currentTargetTex != null;
+		#if usesys
+		haxe.System.beginFrame();
+		#end
 		driver.begin(frameCount);
 		if( backgroundColor != null ) clear(backgroundColor, 1, 0);
 		return true;