mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Recompute memory pressure state after each promote / demote call
This commit is contained in:
parent
b2aa3271f7
commit
2a2102c7fe
1 changed files with 2 additions and 0 deletions
|
@ -506,11 +506,13 @@ void GLVariableAllocationSupport::processWorkQueues() {
|
|||
continue;
|
||||
}
|
||||
vartexture->demote();
|
||||
_memoryPressureStateStale = true;
|
||||
} else if (MemoryPressureState::Undersubscribed == _memoryPressureState) {
|
||||
if (!vartexture->canPromote()) {
|
||||
continue;
|
||||
}
|
||||
vartexture->promote();
|
||||
_memoryPressureStateStale = true;
|
||||
} else if (MemoryPressureState::Transfer == _memoryPressureState) {
|
||||
if (!vartexture->hasPendingTransfers()) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue