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

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>
This commit is contained in:
riperiperi 2020-11-07 02:04:26 +00:00 committed by GitHub
parent 61d83760f5
commit 500b48251c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>