1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-17 19:36:40 +00:00

Disable delayed counter copy on NVIDIA

This commit is contained in:
riperiperi 2024-02-15 11:26:20 +00:00
parent 71901a54b8
commit 1a85c9a00b

View file

@ -82,9 +82,18 @@ namespace Ryujinx.Graphics.OpenGL.Queries
public bool QueueCopy(BufferedQuery query) public bool QueueCopy(BufferedQuery query)
{ {
_queuedCopies.Add(query); if (HwCapabilities.Vendor == HwCapabilities.GpuVendor.Nvidia)
{
// NVIDIA seems to make up a rule where query results can't be copied to buffers
// when unrelated query objects are in use.
return false;
}
else
{
_queuedCopies.Add(query);
return true; return true;
}
} }
public void Dispose() public void Dispose()