From 656e7aab2980faedc773bfd260cc703cfbd9bfa2 Mon Sep 17 00:00:00 2001 From: Subv Date: Sat, 3 Mar 2018 11:51:36 -0500 Subject: Vi: Signal the BufferQueue's Native Handle right after ReleaseBuffer is called. This prevents a thread starvation issue in Puyo Puyo Tetris. We should hwtest this behavior and figure out where exactly this event is signaled. --- src/core/hle/service/nvflinger/nvflinger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index a54239b0f..0d30f54dc 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp @@ -150,6 +150,9 @@ void NVFlinger::Compose() { igbp_buffer.width, igbp_buffer.height, igbp_buffer.stride, buffer->transform); buffer_queue->ReleaseBuffer(buffer->slot); + + // TODO(Subv): Figure out when we should actually signal this event. + buffer_queue->GetNativeHandle()->Signal(); } } -- cgit v1.2.3