Sfoglia il codice sorgente

Sleep OpenAL thread (#313)

ReinUsesLisp 7 anni fa
parent
commit
b92189cb71
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Ryujinx.Audio/OpenAL/OpenALAudioOut.cs

+ 2 - 1
Ryujinx.Audio/OpenAL/OpenALAudioOut.cs

@@ -222,7 +222,8 @@ namespace Ryujinx.Audio.OpenAL
                     Td.CallReleaseCallbackIfNeeded();
                 }
 
-                Thread.Yield();
+                //If it's not slept it will waste cycles
+                Thread.Sleep(10);
             }
             while (KeepPolling);
         }