mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
...
This commit is contained in:
parent
75018ffc4a
commit
d064ed6d17
1 changed files with 2 additions and 6 deletions
|
@ -437,9 +437,6 @@ namespace SanAndreasUnity.Editor
|
|||
|
||||
float diffPerc = endPerc - startPerc;
|
||||
|
||||
// TODO: this should be removed
|
||||
yield return null; // this must be done, otherwise LoadingThread does not start processing any job
|
||||
|
||||
for (int i = 0; i < numIterations; i++)
|
||||
{
|
||||
long initialNumPendingJobs = LoadingThread.Singleton.GetNumPendingJobs();
|
||||
|
@ -458,9 +455,8 @@ namespace SanAndreasUnity.Editor
|
|||
|
||||
LoadingThread.Singleton.UpdateJobs();
|
||||
|
||||
//System.Threading.Thread.Sleep(10); // don't interact with background thread too often, and also reduce CPU usage
|
||||
yield return null;
|
||||
|
||||
System.Threading.Thread.Sleep(10); // don't interact with background thread too often, and also reduce CPU usage
|
||||
|
||||
numPendingJobs = LoadingThread.Singleton.GetNumPendingJobs();
|
||||
initialNumPendingJobs = Math.Max(initialNumPendingJobs, numPendingJobs);
|
||||
|
||||
|
|
Loading…
Reference in a new issue