animation: reset tick state on session activation (#13024)
After suspend/wake, the animation tick timer state (m_lastTickValid,
m_tickScheduled) could be stale, causing framerate drops when blur is
enabled. This was introduced in 2b0fd417 which changed the animation
tick timing mechanism.
Reset the tick state when the session becomes active to ensure a clean
state for the animation system.
This commit is contained in:
parent
55f40ecc95
commit
f9fb24577a
3 changed files with 12 additions and 0 deletions
|
|
@ -483,6 +483,10 @@ void CCompositor::initAllSignals() {
|
|||
|
||||
m_sessionActive = true;
|
||||
|
||||
// Reset animation tick state to avoid stale timer issues after suspend/wake
|
||||
if (g_pAnimationManager)
|
||||
g_pAnimationManager->resetTickState();
|
||||
|
||||
for (auto const& m : m_monitors) {
|
||||
scheduleFrameForMonitor(m);
|
||||
m->applyMonitorRule(&m->m_activeMonitorRule, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue