aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2020-11-07 02:04:26 +0000
committerGitHub <noreply@github.com>2020-11-06 23:04:26 -0300
commit500b48251c1296a7645a44dc26248f36733f5ad8 (patch)
tree08da7bee4acb9d30e2a8fa5dd34f946ff5e7a365
parent61d83760f589d0381437a2b5c4e4fd8146183d0d (diff)
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 <FICTURE7@gmail.com> Co-authored-by: FICTURE7 <FICTURE7@gmail.com>
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/GPFifo/GPFifoDevice.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/GPFifo/GPFifoDevice.cs b/Ryujinx.Graphics.Gpu/Engine/GPFifo/GPFifoDevice.cs
index c68a3ef2..28430f21 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
/// <returns>True if commands were received, false if wait timed out</returns>
public bool WaitForCommands()
{
- return _event.WaitOne(8);
+ return _event.WaitOne(8) && !_commandBufferQueue.IsEmpty;
}
/// <summary>