Revert "Enable context dropping on stopped only"

This reverts commit 1bcdc4fef6.

Reason for revert: Needs additional refinement to avoid regressing
performance for UI in more persistent processes like Launcher. See also b/269425983.

Bug: 269425983
Bug: 245565051
Change-Id: I7397c775162f084cb073de5fc04bd4b95dd5ccd5
(cherry picked from commit abdb4eb67f)
Merged-In: I7397c775162f084cb073de5fc04bd4b95dd5ccd5
This commit is contained in:
Jared Duke
2023-02-17 00:02:29 +00:00
parent b62d832a20
commit fbf5a55dc1

View File

@@ -53,8 +53,8 @@ struct MemoryPolicy {
// Whether or not to only purge scratch resources when triggering UI Hidden or background
// collection
bool purgeScratchOnly = true;
// Whether or not to trigger releasing GPU context when all contexts are stopped
bool releaseContextOnStoppedOnly = true;
// EXPERIMENTAL: Whether or not to trigger releasing GPU context when all contexts are stopped
bool releaseContextOnStoppedOnly = false;
};
const MemoryPolicy& loadMemoryPolicy();