Browse Source

added beginFrame for syc/timing purposes

ncannasse 7 năm trước cách đây
mục cha
commit
5bf8c0d3db
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;