Only use persistent buffers to flush on NVIDIA and Windows+AMD (#2489)
It seems like this method of flushing data is much slower on Mesa drivers, and slightly slower on Intel Windows. Have not tested Intel Mesa, but I'm assuming it is the same as AMD. This also adds vendor detection for AMD on Unix, which counted as "Unknown" before.
This commit is contained in:
@ -93,7 +93,14 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
|
||||
public byte[] GetBufferData(BufferHandle buffer, int offset, int size)
|
||||
{
|
||||
return PersistentBuffers.Default.GetBufferData(buffer, offset, size);
|
||||
if (HwCapabilities.UsePersistentBufferForFlush)
|
||||
{
|
||||
return PersistentBuffers.Default.GetBufferData(buffer, offset, size);
|
||||
}
|
||||
else
|
||||
{
|
||||
return Buffer.GetData(buffer, offset, size);
|
||||
}
|
||||
}
|
||||
|
||||
public Capabilities GetCapabilities()
|
||||
|
Reference in New Issue
Block a user