mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
GPU: Finish the depth raster when a list ends, before the CPU runs again
Syphon Filter reads its depth buffer back on the CPU for the light flares as soon as a list has ended, without a DrawSync, and saw it before the worker had drawn the walls, so flares behind them flickered. Now returning to the CPU after an END waits for the batches already submitted. Returning at a stall doesn't wait, as Wipeout does that about 300 times a frame. Wipeout on a Galaxy S8: 11% less wall time than before the worker (16% without the wait). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
cd59a16d85
commit
a37e1f3660
6 files changed
+29
No files matched your search
@@ -1365,6 +1365,12 @@ void DrawEngineCommon::FlushQueuedDepth() {
|
||||
depthWorker_->TakeTimes(&gpuStats.perFrame.msCullDepth, &gpuStats.perFrame.msRasterizeDepth);
|
||||
}
|
||||
|
||||
void DrawEngineCommon::WaitForSubmittedDepth() {
|
||||
if (depthWorker_) {
|
||||
depthWorker_->WaitForSubmitted();
|
||||
}
|
||||
}
|
||||
|
||||
void DrawEngineCommon::WaitForDepthWrites(u32 addr, u32 size) {
|
||||
if (depthWorker_) {
|
||||
depthWorker_->WaitIfWriting(addr, size);
|
||||
|
||||
Reference in new issue
Block a user