Skip to content

Commit 4768375

Browse files
committed
Fixed an issue where the index generation was sometimes slow.
1 parent 2f3b6fb commit 4768375

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

RuntimeUnityEditor/Windows/ObjectTree/RootGameObjectSearcher.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,11 @@ private IEnumerator IndexObjectsCo()
436436

437437
if (timer.ElapsedMilliseconds > 20)
438438
{
439-
timer.Reset();
440439
_indexingTimer.Stop();
441440

442441
yield return null;
443442

444443
_indexingTimer.Start();
445-
timer.Start();
446444

447445
_searchResults = DoSearch();
448446

@@ -451,6 +449,9 @@ private IEnumerator IndexObjectsCo()
451449
RuntimeUnityEditorCore.Logger.Log(LogLevel.Debug, "Restarting indexing...");
452450
goto Restart;
453451
}
452+
453+
timer.Reset();
454+
timer.Start();
454455
}
455456
}
456457

0 commit comments

Comments
 (0)