mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-30 19:51:55 -07:00
monitor: Optimize direct scanout damage (#9653)
This commit is contained in:
@@ -1384,7 +1384,7 @@ bool CMonitor::attemptDirectScanout() {
|
|||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
PSURFACE->presentFeedback(&now, self.lock());
|
PSURFACE->presentFeedback(&now, self.lock());
|
||||||
|
|
||||||
output->state->addDamage(CBox{{}, vecPixelSize});
|
output->state->addDamage(PSURFACE->accumulateCurrentBufferDamage());
|
||||||
output->state->resetExplicitFences();
|
output->state->resetExplicitFences();
|
||||||
|
|
||||||
auto cleanup = CScopeGuard([this]() { output->state->resetExplicitFences(); });
|
auto cleanup = CScopeGuard([this]() { output->state->resetExplicitFences(); });
|
||||||
|
Reference in New Issue
Block a user