Skip to content

Commit

Permalink
Improve performances by not sleeping for 10ms waiting on every async …
Browse files Browse the repository at this point in the history
…command to complete
  • Loading branch information
SRombauts committed May 11, 2020
1 parent 55e2a4d commit 15877de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/GitSourceControl/Private/GitSourceControlProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ ECommandResult::Type FGitSourceControlProvider::ExecuteSynchronousCommand(FGitSo

Progress.Tick();

// Sleep for a bit so we don't busy-wait so much.
FPlatformProcess::Sleep(0.01f);
// Sleep so we don't busy-wait so much.
FPlatformProcess::Sleep(0.0f);
}

// always do one more Tick() to make sure the command queue is cleaned up.
Expand Down

0 comments on commit 15877de

Please sign in to comment.