Explorar o código

added beginFrame for syc/timing purposes

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
5bf8c0d3db
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;