update operation system

pull/86/head
hevinci 2023-03-24 16:59:28 +08:00
parent 19221480a0
commit 82c83fcdf7
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ namespace YooAsset
foreach (var operation in _operations)
{
if (IsBusy)
return;
break;
operation.Update();
if (operation.IsDone)

View File

@ -200,10 +200,10 @@ namespace YooAsset
/// </summary>
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;
}