diff options
author | Leon Scroggins <scroggo@google.com> | 2020-06-11 15:22:36 +0000 |
---|---|---|
committer | John Reck <jreck@google.com> | 2020-06-11 17:24:47 +0000 |
commit | 30d367873477c19e144206d38873471bc51414a8 (patch) | |
tree | d60c6aded04c61223607b98ad84a744a842ab2cd /libs/hwui/renderthread/CacheManager.cpp | |
parent | 9e7a8c853c42a1745d99a46ad5f9fc8b2acbd19a (diff) |
Revert "Drop max texture cache size from 12x to 5x"
Bug: 155002050
Test: Manual - scroll Pchome app
This reverts commit 05ac51641297ae2cbe9b186b8c369f3a23a156b9.
Reason for revert: When running Pchome, this change resulted in poor
performance while scrolling. Every frame appears to be uploading
several textures, potentially the same textures over and over again.
Change-Id: I0fc7216e16f783051d1bd87af764c1a6f361c138
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/CacheManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CacheManager.cpp b/libs/hwui/renderthread/CacheManager.cpp index d177855e5a7d..1e5877356e8d 100644 --- a/libs/hwui/renderthread/CacheManager.cpp +++ b/libs/hwui/renderthread/CacheManager.cpp @@ -42,7 +42,7 @@ namespace renderthread { // to the screen resolution. This is meant to be a conservative default based on // that analysis. The 4.0f is used because the default pixel format is assumed to // be ARGB_8888. -#define SURFACE_SIZE_MULTIPLIER (5.0f * 4.0f) +#define SURFACE_SIZE_MULTIPLIER (12.0f * 4.0f) #define BACKGROUND_RETENTION_PERCENTAGE (0.5f) CacheManager::CacheManager() |