summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2022-11-18 15:25:32 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-11-18 15:25:32 +0000
commit16eaa6fe23c08ce56e7ddb1c4a73aa8302cffe0b (patch)
tree3461bce6654a1a82e49480beae46e44c6431e938 /libs
parent5dba0d5a49069c9de68b8fd4e0803d325fc03103 (diff)
parent9e08c2e5aa2bab3623d7d856ace0d5c02fd56a97 (diff)
Merge "Drop context on hidden"
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/MemoryPolicy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/MemoryPolicy.h b/libs/hwui/MemoryPolicy.h
index e86b338608d2..41ced8cebf83 100644
--- a/libs/hwui/MemoryPolicy.h
+++ b/libs/hwui/MemoryPolicy.h
@@ -43,13 +43,13 @@ struct MemoryPolicy {
float backgroundRetentionPercent = 0.5f;
// How long after the last renderer goes away before the GPU context is released. A value
// of 0 means only drop the context on background TRIM signals
- nsecs_t contextTimeout = 0_ms;
+ nsecs_t contextTimeout = 10_s;
// The minimum amount of time to hold onto items in the resource cache
// The actual time used will be the max of this & when frames were actually rendered
nsecs_t minimumResourceRetention = 10_s;
// If false, use only TRIM_UI_HIDDEN to drive background cache limits;
// If true, use all signals (such as all contexts are stopped) to drive the limits
- bool useAlternativeUiHidden = false;
+ bool useAlternativeUiHidden = true;
// Whether or not to only purge scratch resources when triggering UI Hidden or background
// collection
bool purgeScratchOnly = true;