DivestOS/Patches/LineageOS-14.1/android_device_asus_grouper/0002-Perf_Tweaks.patch

93 lines
3.0 KiB
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2018-07-10 17:59:03 -04:00
From: Tad <tad@spotco.us>
2018-07-11 11:22:22 -04:00
Date: Wed, 11 Jul 2018 13:54:10 -0400
2018-07-10 17:59:03 -04:00
Subject: [PATCH] Performance tweaks from @AndDiSa
2018-07-11 11:22:22 -04:00
Change-Id: I87e7b700b3caf713e98bcfdc74613da23139db70
2018-07-10 17:59:03 -04:00
---
BoardConfigCommon.mk | 3 +++
device.mk | 3 ++-
2018-07-11 11:22:22 -04:00
.../base/core/res/res/values/config.xml | 7 +++++
system.prop | 27 ++++++++++++++++---
4 files changed, 36 insertions(+), 4 deletions(-)
2018-07-10 17:59:03 -04:00
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
2018-07-11 11:22:22 -04:00
index f402c86..c84be43 100644
2018-07-10 17:59:03 -04:00
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
2018-07-10 19:39:17 -04:00
@@ -20,6 +20,9 @@ TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a9
2018-07-10 17:59:03 -04:00
2018-07-10 19:39:17 -04:00
+BOARD_EGL_WORKAROUND_BUG_10194508 := true
2018-07-10 17:59:03 -04:00
+NEED_WORKAROUND_CORTEX_A9_745320 := true
+
2018-07-10 19:39:17 -04:00
TARGET_BOOTLOADER_BOARD_NAME := grouper
2018-07-10 17:59:03 -04:00
2018-07-10 19:39:17 -04:00
# Filesystem
2018-07-10 17:59:03 -04:00
diff --git a/device.mk b/device.mk
index 33c1fc9..8d8c65a 100644
2018-07-10 17:59:03 -04:00
--- a/device.mk
+++ b/device.mk
2018-07-10 19:39:17 -04:00
@@ -24,7 +24,8 @@ PRODUCT_COPY_FILES += \
device/asus/grouper/rootdir/init.grouper.sensors.rc:root/init.grouper.sensors.rc
2018-07-10 17:59:03 -04:00
PRODUCT_PROPERTY_OVERRIDES += \
2018-07-10 19:39:17 -04:00
- ro.carrier=wifi-only
+ ro.carrier=wifi-only \
2018-07-10 17:59:03 -04:00
+ 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
2018-07-10 17:59:03 -04:00
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
2018-07-10 19:39:17 -04:00
@@ -219,4 +219,11 @@
<!-- Enable doze powersaving -->
<bool name="config_enableAutoPowerModes">true</bool>
2018-07-10 17:59:03 -04:00
+ <!-- Set lowmemorykiller threshold -->
+ <integer name="config_lowMemoryKillerMinFreeKbytesAbsolute">-1</integer>
+ <integer name="config_lowMemoryKillerMinFreeKbytesAdjust">0</integer>
+
+ <!-- Whether to enable HumanInteractionController by default -->
+ <bool name="config_HICEnabledDefault">false</bool>
2018-07-10 19:39:17 -04:00
+
2018-07-10 17:59:03 -04:00
</resources>
diff --git a/system.prop b/system.prop
index b1d9807..1b1daa5 100644
2018-07-10 17:59:03 -04:00
--- a/system.prop
+++ b/system.prop
@@ -12,6 +12,27 @@ ro.sf.lcd_density=213
2018-07-10 17:59:03 -04:00
# 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
+
2018-07-10 19:39:17 -04:00
+# 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.sys.scrollingcache=1
2018-07-10 17:59:03 -04:00
+persist.sys.use_16bpp_alpha=1
2018-07-10 19:39:17 -04:00
+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