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)
|
foreach (var operation in _operations)
|
||||||
{
|
{
|
||||||
if (IsBusy)
|
if (IsBusy)
|
||||||
return;
|
break;
|
||||||
|
|
||||||
operation.Update();
|
operation.Update();
|
||||||
if (operation.IsDone)
|
if (operation.IsDone)
|
||||||
|
|
|
@ -200,10 +200,10 @@ namespace YooAsset
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void SetOperationSystemMaxTimeSlice(long milliseconds)
|
public static void SetOperationSystemMaxTimeSlice(long milliseconds)
|
||||||
{
|
{
|
||||||
if (milliseconds < 30)
|
if (milliseconds < 10)
|
||||||
{
|
{
|
||||||
milliseconds = 30;
|
milliseconds = 10;
|
||||||
YooLogger.Warning($"MaxTimeSlice minimum value is 30 milliseconds.");
|
YooLogger.Warning($"MaxTimeSlice minimum value is 10 milliseconds.");
|
||||||
}
|
}
|
||||||
OperationSystem.MaxTimeSlice = milliseconds;
|
OperationSystem.MaxTimeSlice = milliseconds;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue