From 500b48251c1296a7645a44dc26248f36733f5ad8 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sat, 7 Nov 2020 02:04:26 +0000 Subject: [PATCH] Only report that GPU commands are available when the queue is not empty. (#1656) * Only report that commands are available when the queue is not empty. * Address Feedback Co-authored-by: FICTURE7 Co-authored-by: FICTURE7 --- Ryujinx.Graphics.Gpu/Engine/GPFifo/GPFifoDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Graphics.Gpu/Engine/GPFifo/GPFifoDevice.cs b/Ryujinx.Graphics.Gpu/Engine/GPFifo/GPFifoDevice.cs index c68a3ef2e..28430f214 100644 --- a/Ryujinx.Graphics.Gpu/Engine/GPFifo/GPFifoDevice.cs +++ b/Ryujinx.Graphics.Gpu/Engine/GPFifo/GPFifoDevice.cs @@ -163,7 +163,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.GPFifo /// True if commands were received, false if wait timed out public bool WaitForCommands() { - return _event.WaitOne(8); + return _event.WaitOne(8) && !_commandBufferQueue.IsEmpty; } ///