mirror of https://github.com/tuyoogame/YooAsset
update operation system
parent
19221480a0
commit
82c83fcdf7
|
@ -61,7 +61,7 @@ namespace YooAsset
|
|||
foreach (var operation in _operations)
|
||||
{
|
||||
if (IsBusy)
|
||||
return;
|
||||
break;
|
||||
|
||||
operation.Update();
|
||||
if (operation.IsDone)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue