diff --git a/Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs b/Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs
index ada955e8..34029560 100644
--- a/Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs
+++ b/Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs
@@ -13,6 +13,11 @@ namespace YooAsset
private static Stopwatch _watch;
private static long _frameTime;
+ ///
+ /// 快速启动模式
+ ///
+ public static bool QuickStartMode = false;
+
///
/// 异步操作的最小时间片段
///
@@ -136,6 +141,11 @@ namespace YooAsset
_newList.Add(operation);
operation.SetPackageName(packageName);
operation.SetStart();
+
+ if (QuickStartMode)
+ {
+ operation.InternalOnUpdate();
+ }
}
}
}
\ No newline at end of file
diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs
index cb0f5c7b..276c8e12 100644
--- a/Assets/YooAsset/Runtime/YooAssets.cs
+++ b/Assets/YooAsset/Runtime/YooAssets.cs
@@ -222,6 +222,15 @@ namespace YooAsset
}
OperationSystem.MaxTimeSlice = milliseconds;
}
+
+ ///
+ /// 设置异步系统参数,快速启动模式的开关
+ /// 注意:该模式默认开启
+ ///
+ public static void SetOperationSystemQuickStartMode(bool state)
+ {
+ OperationSystem.QuickStartMode = state;
+ }
#endregion
#region 调试信息