mirror of
https://github.com/rt64/rt64.git
synced 2024-12-26 21:18:31 +00:00
Clear operations from present queue when framebuffer changes are released.
This commit is contained in:
parent
5749e90548
commit
d884392b71
@ -490,7 +490,7 @@ namespace RT64 {
|
||||
|
||||
skipPresent = skipPresent || ext.swapChain->isEmpty();
|
||||
|
||||
const Present &present = presents[processCursor];
|
||||
Present &present = presents[processCursor];
|
||||
ext.workloadQueue->waitForWorkloadId(present.workloadId);
|
||||
|
||||
if (!presentThreadRunning) {
|
||||
@ -505,12 +505,13 @@ namespace RT64 {
|
||||
threadPresent(present, swapChainValid);
|
||||
}
|
||||
|
||||
if (!present.fbOperations.empty()) {
|
||||
const std::scoped_lock lock(screenFbChangePoolMutex);
|
||||
screenFbChangePool.release(present.fbOperations.front().writeChanges.id);
|
||||
}
|
||||
|
||||
if (!present.paused) {
|
||||
if (!present.fbOperations.empty()) {
|
||||
const std::scoped_lock lock(screenFbChangePoolMutex);
|
||||
screenFbChangePool.release(present.fbOperations.front().writeChanges.id);
|
||||
present.fbOperations.clear();
|
||||
}
|
||||
|
||||
threadAdvanceBarrier();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user