From 74a903c4ee34bb0ab058a749789805f765479a1e Mon Sep 17 00:00:00 2001 From: Tad Date: Wed, 11 Jul 2018 13:54:10 -0400 Subject: [PATCH] Performance tweaks from @AndDiSa Change-Id: I87e7b700b3caf713e98bcfdc74613da23139db70 --- BoardConfigCommon.mk | 3 ++ device.mk | 3 +- .../base/core/res/res/values/config.xml | 7 +++++ system.prop | 29 +++++++++++++++++-- 4 files changed, 38 insertions(+), 4 deletions(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index f402c86..c84be43 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -20,6 +20,9 @@ TARGET_ARCH := arm TARGET_ARCH_VARIANT := armv7-a-neon TARGET_CPU_VARIANT := cortex-a9 +BOARD_EGL_WORKAROUND_BUG_10194508 := true +NEED_WORKAROUND_CORTEX_A9_745320 := true + TARGET_BOOTLOADER_BOARD_NAME := grouper # Filesystem diff --git a/device.mk b/device.mk index 33c1fc9..8d8c65a 100644 --- a/device.mk +++ b/device.mk @@ -24,7 +24,8 @@ PRODUCT_COPY_FILES += \ device/asus/grouper/rootdir/init.grouper.sensors.rc:root/init.grouper.sensors.rc PRODUCT_PROPERTY_OVERRIDES += \ - ro.carrier=wifi-only + ro.carrier=wifi-only \ + ro.radio.noril=true DEVICE_PACKAGE_OVERLAYS += \ device/asus/grouper/overlay diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index d28e4fb..c9ec73a 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -219,4 +219,11 @@ true + + -1 + 0 + + + false + diff --git a/system.prop b/system.prop index b1d9807..1f31c09 100644 --- a/system.prop +++ b/system.prop @@ -12,6 +12,29 @@ ro.sf.lcd_density=213 # Wi-Fi wifi.interface=wlan0 -# Configure PRISM, but disable it by default -persist.tegra.didim.video=5 -persist.tegra.didim.enable=0 +# configure PRISM +persist.tegra.didim.video = 5 +persist.tegra.didim.enable = 1 +persist.tegra.didim.normal = 3 + +# don't preload OpenGL in Zygote, the Tegra drivers do not like it +ro.zygote.disable_gl_preload=true + +#perf tweaks +dalvik.vm.dex2oat-flags=--no-watch-dog +dalvik.vm.dex2oat-swap=true +debug.hwui.render_dirty_regions=false +persist.debug.wfd.enable=1 +persist.sys.force_highendgfx=true +persist.sys.scrollingcache=1 +persist.sys.use_16bpp_alpha=1 +pm.sleep_mode=1 +ro.config.hw_power_saving=true +ro.config.max_starting_bg=8 +ro.ril.disable.power.collapse=0 +ro.sys.fw.bg_apps_limit=12 +ro.sys.fw.dex2oat_thread_count=4 +ro.sys.fw.trim_cache_percent=70 +ro.sys.fw.trim_empty_percent=70 +ro.sys.fw.use_trim_settings=true +dalvik.vm.madvise-random=true -- 2.18.0