diff options
author | 2023-02-17 00:02:29 +0000 | |
---|---|---|
committer | 2023-02-21 16:01:48 +0000 | |
commit | fbf5a55dc1e164b8cdd4736a367b739967a361b5 (patch) | |
tree | 90bbc146a0ec78a10dc43a024e464e510f71c6c4 | |
parent | b62d832a2072feed18f812b50e56a28f2b75c2c7 (diff) |
Revert "Enable context dropping on stopped only"
This reverts commit 1bcdc4fef66e7474669a69ee5e70d5dca4a50ffb.
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 abdb4eb67f4388b676642f8d0815f56b1c728592)
Merged-In: I7397c775162f084cb073de5fc04bd4b95dd5ccd5
-rw-r--r-- | libs/hwui/MemoryPolicy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/MemoryPolicy.h b/libs/hwui/MemoryPolicy.h index 2f0f7f506447..41ced8cebf83 100644 --- a/libs/hwui/MemoryPolicy.h +++ b/libs/hwui/MemoryPolicy.h @@ -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(); |