Compare commits

...

5 Commits

Author SHA1 Message Date
BXYMartin
979d6ac072 Merge branch 'master' into 'master'
Fixed macOS random freezing at character selection screen of Super Mario Party Jamboree

See merge request [ryubing/ryujinx!239](https://git.ryujinx.app/ryubing/ryujinx/-/merge_requests/239)
2026-04-02 05:11:49 -05:00
Ryujinx Administrator
ecd1c1240c bump to GLI 2.0.31 (uses legacy.git.ryujinx.app) 2026-04-02 01:23:03 -05:00
BXYMartin
7729cf383d Merge branch ryujinx:master into master 2026-03-17 05:52:41 -05:00
Martin Bai
c29c68ec42 Add error log output when max retried reached 2025-12-25 14:08:34 +00:00
Martin Bai
48adca40f5 Add max retries to BufferedQuery regardless of the presence of wakeSignal, fixed freezing at character selection screen of Super Mario Party Jamboree 2025-12-25 13:47:27 +00:00
3 changed files with 10 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ jobs:
- name: Install gli
run: |
mkdir -p $HOME/.bin
gh release download -R GreemDev/GLI -O gli -p 'gli-linux-x64' 2.0.30
gh release download -R GreemDev/GLI -O gli -p 'gli-linux-x64' 2.0.31
chmod +x gli
mv gli $HOME/.bin/
echo "$HOME/.bin" >> $GITHUB_PATH

View File

@@ -44,7 +44,7 @@ jobs:
- name: Install gli
run: |
mkdir -p $HOME/.bin
gh release download -R GreemDev/GLI -O gli -p 'gli-linux-x64' 2.0.30
gh release download -R GreemDev/GLI -O gli -p 'gli-linux-x64' 2.0.31
chmod +x gli
mv gli $HOME/.bin/
echo "$HOME/.bin" >> $GITHUB_PATH

View File

@@ -145,29 +145,19 @@ namespace Ryujinx.Graphics.Vulkan.Queries
{
long data = _defaultValue;
if (wakeSignal == null)
int iterations = 0;
while (WaitingForValue(data) && iterations++ < MaxQueryRetries)
{
while (WaitingForValue(data))
data = Marshal.ReadInt64(_bufferMap);
if (wakeSignal != null && WaitingForValue(data))
{
data = Marshal.ReadInt64(_bufferMap);
wakeSignal.WaitOne(0);
}
}
else
{
int iterations = 0;
while (WaitingForValue(data) && iterations++ < MaxQueryRetries)
{
data = Marshal.ReadInt64(_bufferMap);
if (WaitingForValue(data))
{
wakeSignal.WaitOne(1);
}
}
if (iterations >= MaxQueryRetries)
{
Logger.Error?.Print(LogClass.Gpu, $"Error: Query result {_type} timed out. Took more than {MaxQueryRetries} tries.");
}
if (iterations >= MaxQueryRetries)
{
Logger.Error?.Print(LogClass.Gpu, $"Error: Query result {_type} timed out. Took more than {MaxQueryRetries} tries.");
}
return data;