Skip to content

Commit 442397d

Browse files
committed
Fix continuation queue not expanding
See #2
1 parent 1a4214c commit 442397d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityAsync/Assets/UnityAsync/Manager/AsyncManager.ContinuationProcessorGroup.ContinuationProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void Add(in T cont)
5757
{
5858
AssertQueueSize(futureCount + 1);
5959

60-
int newQueueSize = Math.Min(MaxQueueSize, futureQueue.Length);
60+
int newQueueSize = Math.Min(MaxQueueSize, futureQueue.Length * 3 / 2);
6161

6262
Array.Resize(ref futureQueue, newQueueSize);
6363
Array.Resize(ref currentQueue, newQueueSize);

0 commit comments

Comments
 (0)