Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab682793 authored by John Reck's avatar John Reck Committed by Automerger Merge Worker
Browse files

Merge "Fix gpu resource not cleaned up" into main am: dab518a0 am: 8b07b22d

parents c6fcff70 8b07b22d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ void CacheManager::onThreadIdle() {

    const nsecs_t now = systemTime(CLOCK_MONOTONIC);
    // Rate limiting
    if ((now - mLastDeferredCleanup) < 25_ms) {
    if ((now - mLastDeferredCleanup) > 25_ms) {
        mLastDeferredCleanup = now;
        const nsecs_t frameCompleteNanos = mFrameCompletions[0];
        const nsecs_t frameDiffNanos = now - frameCompleteNanos;