Kaynağa Gözat

tick shader cache compilation to avoid timeouts

trethaller 6 yıl önce
ebeveyn
işleme
2266ae01bf
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 6 2
      hxsl/CacheFile.hx

+ 6 - 2
hxsl/CacheFile.hx

@@ -109,12 +109,16 @@ class CacheFile extends Cache {
 		if( wait.length > 0 ) {
 			waitCount += wait.length;
 			#if hlmulti
-			for( r in wait )
+			for( r in wait ) {
 				addNewShader(r);
+				hxd.System.timeoutTick();
+			}
 			#else
 			haxe.Timer.delay(function() {
-				for( r in wait )
+				for( r in wait ) {
 					addNewShader(r);
+					hxd.System.timeoutTick();
+				}
 			},1000); // wait until engine correctly initialized
 			#end
 		}