summaryrefslogtreecommitdiffstats
path: root/init.ranchu.rc
diff options
context:
space:
mode:
authorYurii Zubrytskyi <zyy@google.com>2016-05-13 14:13:32 -0700
committerYurii Zubrytskyi <zyy@google.com>2016-05-13 14:13:32 -0700
commit6fc69c7d7126a515f0f92b5da5d576e9c9d0cc4e (patch)
tree5a7359dd1e239e11dc32b53dea35d3c088d8a9df /init.ranchu.rc
parentad525fea6eae8c4614c7ae25f9e718084513248c (diff)
downloadandroid_device_generic_goldfish-6fc69c7d7126a515f0f92b5da5d576e9c9d0cc4e.tar.gz
android_device_generic_goldfish-6fc69c7d7126a515f0f92b5da5d576e9c9d0cc4e.tar.bz2
android_device_generic_goldfish-6fc69c7d7126a515f0f92b5da5d576e9c9d0cc4e.zip
[phone] Set up the GPU caching parameters for emulator device
Default texture cache is way too small to be able to handle large background images; this causes huge performance issues in the emulator; This CL tweaks the caching parameters to be on par with physical devices Bug=https://b.corp.google.com/u/0/issues/28752126 Change-Id: I1852038f7065cc4b00b425fdf5fc35afe4168ace
Diffstat (limited to 'init.ranchu.rc')
-rw-r--r--init.ranchu.rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/init.ranchu.rc b/init.ranchu.rc
index 80e63dd..2a20cd5 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -24,6 +24,19 @@ on boot
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9
+# set up the GPU caching
+ setprop ro.hwui.texture_cache_size 72
+ setprop ro.hwui.layer_cache_size 48
+ setprop ro.hwui.r_buffer_cache_size 8
+ setprop ro.hwui.path_cache_size 32
+ setprop ro.hwui.gradient_cache_size 1
+ setprop ro.hwui.drop_shadow_cache_size 6
+ setprop ro.hwui.texture_cache_flushrate 0.4
+ setprop ro.hwui.text_small_cache_width 1024
+ setprop ro.hwui.text_small_cache_height 1024
+ setprop ro.hwui.text_large_cache_width 2048
+ setprop ro.hwui.text_large_cache_height 1024
+
# disable some daemons the emulator doesn't want
stop dund
stop akmd