2
0
Эх сурвалжийг харах

disable timeout during dx present()

ncannasse 8 жил өмнө
parent
commit
7d0d1bbf93

+ 3 - 0
h3d/impl/DirectXDriver.hx

@@ -198,7 +198,10 @@ class DirectXDriver extends h3d.impl.Driver {
 	}
 
 	override function present() {
+		var old = hxd.System.allowTimeout;
+		if( old ) hxd.System.allowTimeout = false;
 		Driver.present(window.vsync ? 1 : 0, None);
+		if( old ) hxd.System.allowTimeout = true;
 	}
 
 	override function getDefaultDepthBuffer():h3d.mat.DepthBuffer {