mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: add workaround for CPU usage issue
This commit is contained in:
parent
61662b536c
commit
7dbfd830da
1 changed files with 9 additions and 3 deletions
|
|
@ -107,10 +107,16 @@ namespace Dalamud.Data
|
|||
|
||||
this.luminaResourceThread = new Thread( () =>
|
||||
{
|
||||
while( true )
|
||||
while (true)
|
||||
{
|
||||
this.gameData.ProcessFileHandleQueue();
|
||||
Thread.Yield();
|
||||
if (gameData.FileHandleManager.HasPendingFileLoads)
|
||||
{
|
||||
gameData.ProcessFileHandleQueue();
|
||||
}
|
||||
else
|
||||
{
|
||||
Thread.Sleep(5);
|
||||
}
|
||||
}
|
||||
// ReSharper disable once FunctionNeverReturns
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue