From 82c83fcdf7a365c9d07f14a94adeca0b5fed0fe0 Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 24 Mar 2023 16:59:28 +0800 Subject: [PATCH] update operation system --- Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs | 2 +- Assets/YooAsset/Runtime/YooAssets.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs b/Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs index a4d5be1..e0d4fe2 100644 --- a/Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs +++ b/Assets/YooAsset/Runtime/OperationSystem/OperationSystem.cs @@ -61,7 +61,7 @@ namespace YooAsset foreach (var operation in _operations) { if (IsBusy) - return; + break; operation.Update(); if (operation.IsDone) diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index 1cd9c73..63d7819 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -200,10 +200,10 @@ namespace YooAsset /// public static void SetOperationSystemMaxTimeSlice(long milliseconds) { - if (milliseconds < 30) + if (milliseconds < 10) { - milliseconds = 30; - YooLogger.Warning($"MaxTimeSlice minimum value is 30 milliseconds."); + milliseconds = 10; + YooLogger.Warning($"MaxTimeSlice minimum value is 10 milliseconds."); } OperationSystem.MaxTimeSlice = milliseconds; }