mirror of
https://github.com/rt64/rt64.git
synced 2024-12-27 15:23:07 +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();
|
skipPresent = skipPresent || ext.swapChain->isEmpty();
|
||||||
|
|
||||||
const Present &present = presents[processCursor];
|
Present &present = presents[processCursor];
|
||||||
ext.workloadQueue->waitForWorkloadId(present.workloadId);
|
ext.workloadQueue->waitForWorkloadId(present.workloadId);
|
||||||
|
|
||||||
if (!presentThreadRunning) {
|
if (!presentThreadRunning) {
|
||||||
@ -505,12 +505,13 @@ namespace RT64 {
|
|||||||
threadPresent(present, swapChainValid);
|
threadPresent(present, swapChainValid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!present.paused) {
|
||||||
if (!present.fbOperations.empty()) {
|
if (!present.fbOperations.empty()) {
|
||||||
const std::scoped_lock lock(screenFbChangePoolMutex);
|
const std::scoped_lock lock(screenFbChangePoolMutex);
|
||||||
screenFbChangePool.release(present.fbOperations.front().writeChanges.id);
|
screenFbChangePool.release(present.fbOperations.front().writeChanges.id);
|
||||||
|
present.fbOperations.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!present.paused) {
|
|
||||||
threadAdvanceBarrier();
|
threadAdvanceBarrier();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user