Skip to content

Commit

Permalink
Updates the default value for BufferedQuery (#6351)
Browse files Browse the repository at this point in the history
AMD GPUs (possibly just RDNA 3) could hang with the previous value
until the MaxQueryRetries was hit.

Fix #6056

Co-authored-by: riperiperi <rhy3756547@hotmail.com>
  • Loading branch information
Valance23322 and riperiperi authored Mar 22, 2024
1 parent 20a2805 commit c94a73e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ryujinx.Graphics.Vulkan/Queries/BufferedQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace Ryujinx.Graphics.Vulkan.Queries
class BufferedQuery : IDisposable
{
private const int MaxQueryRetries = 5000;
private const long DefaultValue = -1;
private const long DefaultValueInt = 0xFFFFFFFF;
private const long DefaultValue = unchecked((long)0xFFFFFFFEFFFFFFFE);
private const long DefaultValueInt = 0xFFFFFFFE;
private const ulong HighMask = 0xFFFFFFFF00000000;

private readonly Vk _api;
Expand Down

0 comments on commit c94a73e

Please sign in to comment.