mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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( () =>
|
this.luminaResourceThread = new Thread( () =>
|
||||||
{
|
{
|
||||||
while( true )
|
while (true)
|
||||||
{
|
{
|
||||||
this.gameData.ProcessFileHandleQueue();
|
if (gameData.FileHandleManager.HasPendingFileLoads)
|
||||||
Thread.Yield();
|
{
|
||||||
|
gameData.ProcessFileHandleQueue();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Thread.Sleep(5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// ReSharper disable once FunctionNeverReturns
|
// ReSharper disable once FunctionNeverReturns
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue