summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2018-03-03 11:51:36 -0500
committerGravatar Subv2018-03-03 11:51:36 -0500
commit656e7aab2980faedc773bfd260cc703cfbd9bfa2 (patch)
treeb68f387b346bd3df10a914b18b5f1afbec00c7d5 /src
parentMerge pull request #216 from Subv/savedata (diff)
downloadyuzu-656e7aab2980faedc773bfd260cc703cfbd9bfa2.tar.gz
yuzu-656e7aab2980faedc773bfd260cc703cfbd9bfa2.tar.xz
yuzu-656e7aab2980faedc773bfd260cc703cfbd9bfa2.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp3
1 files changed, 3 insertions, 0 deletions
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() {
150 igbp_buffer.width, igbp_buffer.height, igbp_buffer.stride, buffer->transform); 150 igbp_buffer.width, igbp_buffer.height, igbp_buffer.stride, buffer->transform);
151 151
152 buffer_queue->ReleaseBuffer(buffer->slot); 152 buffer_queue->ReleaseBuffer(buffer->slot);
153
154 // TODO(Subv): Figure out when we should actually signal this event.
155 buffer_queue->GetNativeHandle()->Signal();
153 } 156 }
154} 157}
155 158