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

Commit dab518a0 authored by John Reck's avatar John Reck Committed by Gerrit Code Review
Browse files

Merge "Fix gpu resource not cleaned up" into main

parents 1335a832 6ccda761
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;