浏览代码

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

trethaller 6 年之前
父节点
当前提交
3bb39f0f26
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();