android_device_allwinner-full/common/config/config_mem.ini
2016-08-05 21:03:18 -04:00

128 lines
3.8 KiB
INI
Executable file

#
# Config some parameters for different memory/lcd platform. Do not edit this file if you are not sure
# Line starting with '#' is comment line, which will be omited by the parser.
#
# if you want to use default, just leave absent (not set)
#
#
# dalvik configurations
#
[dalvik_512m]
dalvik.vm.heapsize=128m
dalvik.vm.heapstartsize=8m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=2m
dalvik.vm.dex2oat-Xmx=128m
[dalvik_1024m]
dalvik.vm.heapsize=384m
dalvik.vm.heapstartsize=8m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
[dalvik_2048m]
dalvik.vm.heapsize=512m
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=192m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=2m
dalvik.vm.heapmaxfree=8m
#
# hwui configurations
#
# the hwui paras canbe got by "dumpsys gfxinfo"
[hwui_800]
ro.hwui.texture_cache_size=9
ro.hwui.layer_cache_size=6
ro.hwui.r_buffer_cache_size=1
ro.hwui.path_cache_size=4
ro.hwui.drop_shadow_cache_size=1
[hwui_1024]
ro.hwui.texture_cache_size=16
ro.hwui.layer_cache_size=10
ro.hwui.r_buffer_cache_size=1.5
ro.hwui.path_cache_size=6
ro.hwui.drop_shadow_cache_size=1.5
[hwui_1280]
[hwui_1920]
ro.hwui.texture_cache_size=54
ro.hwui.layer_cache_size=36
ro.hwui.r_buffer_cache_size=5
ro.hwui.path_cache_size=24
ro.hwui.drop_shadow_cache_size=5
ro.hwui.gradient_cache_size=1
ro.hwui.texture_cache_flushrate=0.5
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=1024
[hwui_2048]
ro.hwui.texture_cache_size=72
ro.hwui.layer_cache_size=48
ro.hwui.r_buffer_cache_size=7
ro.hwui.path_cache_size=32
ro.hwui.drop_shadow_cache_size=6
ro.hwui.gradient_cache_size=1
ro.hwui.texture_cache_flushrate=0.5
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=1024
[hwui_2560]
ro.hwui.texture_cache_size=72
ro.hwui.layer_cache_size=48
ro.hwui.r_buffer_cache_size=8
ro.hwui.path_cache_size=32
ro.hwui.drop_shadow_cache_size=6
ro.hwui.gradient_cache_size=1
ro.hwui.texture_cache_flushrate=0.4
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=1024
[heap_growth_limit]
#density/screensize small normal large xlarge
DENSITY_LOW 32m 32m 32m 48m
DENSITY_MEDIUM 32m 32m 64m 80m
DENSITY_TV 48m 48m 80m 96m
DENSITY_HIGH 48m 48m 80m 96m
DENSITY_280 48m 48m 96m 144m
DENSITY_XHIGH 48m 48m 128m 192m
DENSITY_400 96m 96m 192m 288m
DENSITY_XXHIGH 128m 128m 256m 384m
DENSITY_560 192m 192m 384m 576m
DENSITY_XXXHIGH 256m 256m 512m 768m
[least_memory]
#screenSize density compare 32bit 64bit
SCREEN_SMALL DENSITY_HIGH <= 424 424
SCREEN_SMALL DENSITY_560 >= 1344 1824
SCREEN_SMALL DENSITY_XHIGH >= 512 832
SCREEN_SMALL DENSITY_400 >= 896 1280
SCREEN_NORMAL DENSITY_HIGH <= 424 424
SCREEN_NORMAL DENSITY_560 >= 1344 1824
SCREEN_NORMAL DENSITY_400 >= 896 1280
SCREEN_NORMAL DENSITY_XHIGH >= 512 832
SCREEN_LARGE DENSITY_MEDIUM <= 424 424
SCREEN_LARGE DENSITY_400 >= 1344 1824
SCREEN_LARGE DENSITY_XHIGH >= 896 1280
SCREEN_LARGE DENSITY_TV >= 512 832
SCREEN_XLARGE DENSITY_LOW <= 424 424
SCREEN_XLARGE DENSITY_XHIGH >= 1344 1824
SCREEN_XLARGE DENSITY_TV >= 896 1280
SCREEN_XLARGE DENSITY_MEDIUM >= 512 832