Fixed macOS random freezing at character selection screen of Super Mario Party Jamboree
Add max retries to BufferedQuery regardless of the presence of wakeSignal.
The random freezing issue of Super Mario Party Jamboree on macOS is solved after this fix, which is caused by the deadlock on
while (WaitingForValue(data))
{
data = Marshal.ReadInt64(_bufferMap);
}
while the GPU thread is waiting for the same event to be consumed
while (!evt.Disposed)
{
_eventConsumed.WaitOne(1);
}
I am not sure why the data in the _bufferMap is never satisfied for this game, but the commit fixes the problem and now it runs smoothly without any problem.
Tested on MacBook Pro M1 16GB with Ryujinx, iPad Pro M4 16GB with meloNX.