Browse Source

Don't render scene while images are loading. Speeds-up large scenes loading a LOT

trethaller 6 years ago
parent
commit
3bb39f0f26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/comp/Scene.hx

+ 1 - 1
hide/comp/Scene.hx

@@ -171,7 +171,7 @@ class Scene extends Component implements h3d.IDrawable {
 			ide.unregisterUpdate(sync);
 			return;
 		}
-		if( !visible || (!Ide.inst.isFocused && !refreshIfUnfocused) )
+		if( !visible || (!Ide.inst.isFocused && !refreshIfUnfocused) || pendingCount > 0)
 			return;
 		refreshIfUnfocused = false;
 		setCurrent();