From 1cf15681894a405143c0447f6cd0c680d40c2664 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 29 Aug 2015 22:12:31 -0700 Subject: [PATCH] Adding a yield in the XMA decoder to give other threads some breathing room. --- src/xenia/apu/xma_decoder.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/apu/xma_decoder.cc b/src/xenia/apu/xma_decoder.cc index 995ffbd41..4d7a7bf11 100644 --- a/src/xenia/apu/xma_decoder.cc +++ b/src/xenia/apu/xma_decoder.cc @@ -140,6 +140,7 @@ void XmaDecoder::WorkerThreadMain() { // registers_.current_context = n; // registers_.next_context = (n + 1) % kContextCount; } + xe::threading::MaybeYield(); } }