diff --git a/app/build.gradle b/app/build.gradle index f897d4441..4798c7fa2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,7 +21,7 @@ android { applicationId "com.omarea.vtools" minSdkVersion 23 targetSdkVersion 30 - versionCode 202111131 + versionCode 202112061 versionName "4.7.3" externalNativeBuild { cmake { diff --git a/app/src/main/assets/powercfg/kona/powercfg-utils.sh b/app/src/main/assets/powercfg/kona/powercfg-utils.sh index 1c6604ed0..2d391c2e2 100644 --- a/app/src/main/assets/powercfg/kona/powercfg-utils.sh +++ b/app/src/main/assets/powercfg/kona/powercfg-utils.sh @@ -543,7 +543,8 @@ yuan_shen_opt_run() { ;; # "UnityGfxDevice"*|"UnityMultiRende"*|"NativeThread"*|"UnityChoreograp"*) "UnityGfxDevice"*|"UnityMultiRende"*) - taskset -p "70" "$tid" > /dev/null 2>&1 + # taskset -p "70" "$tid" > /dev/null 2>&1 + taskset -p "F0" "$tid" > /dev/null 2>&1 ;; *) taskset -p "7F" "$tid" > /dev/null 2>&1 diff --git a/app/src/main/assets/powercfg/lahaina/powercfg-utils.sh b/app/src/main/assets/powercfg/lahaina/powercfg-utils.sh index 3c3c9a10f..74f517e04 100644 --- a/app/src/main/assets/powercfg/lahaina/powercfg-utils.sh +++ b/app/src/main/assets/powercfg/lahaina/powercfg-utils.sh @@ -608,7 +608,7 @@ yuan_shen_opt_run() { taskset -p "80" "$tid" > /dev/null 2>&1 || taskset -p "F0" "$tid" > /dev/null 2>&1 ;; "UnityGfxDevice"*|"UnityMultiRende"*) - taskset -p "70" "$tid" > /dev/null 2>&1 + taskset -p "F0" "$tid" > /dev/null 2>&1 ;; "AudioTrack"|"Audio"*|"tp_schedule"*|"MIHOYO_NETWORK"|"FMOD"*|"NativeThread"|"UnityChoreograp"|"UnityPreload") taskset -p "F" "$tid" > /dev/null 2>&1 @@ -632,9 +632,12 @@ yuan_shen_opt_run() { "UnityMain") taskset -p "80" "$tid" > /dev/null 2>&1 || taskset -p "F0" "$tid" > /dev/null 2>&1 ;; + "Worker Thread") + taskset -p "F0" "$tid" > /dev/null 2>&1 + ;; # "UnityGfxDevice"*|"UnityMultiRende"*|"NativeThread"*|"UnityChoreograp"*) "UnityGfxDevice"*|"UnityMultiRende"*) - taskset -p "70" "$tid" > /dev/null 2>&1 + taskset -p "F0" "$tid" > /dev/null 2>&1 ;; *) taskset -p "7F" "$tid" > /dev/null 2>&1 diff --git a/app/src/main/assets/powercfg/msmnile/powercfg-base.sh b/app/src/main/assets/powercfg/msmnile/powercfg-base.sh index f0d6f0d4e..c08e42dc0 100644 --- a/app/src/main/assets/powercfg/msmnile/powercfg-base.sh +++ b/app/src/main/assets/powercfg/msmnile/powercfg-base.sh @@ -125,8 +125,12 @@ process_opt(){ set_task_affinity `pgrep com.miui.home` 11110000 } -set_value 40000000 /proc/sys/kernel/sched_latency_ns -set_value 1000000 /proc/sys/kernel/sched_min_granularity_ns +# Default By Xiaomi +# set_value 10000000 /proc/sys/kernel/sched_latency_ns +# set_value 3000000 /proc/sys/kernel/sched_min_granularity_ns + +set_value 10000000 /proc/sys/kernel/sched_latency_ns +set_value 2000000 /proc/sys/kernel/sched_min_granularity_ns process_opt & diff --git a/app/src/main/assets/powercfg/msmnile/powercfg-utils.sh b/app/src/main/assets/powercfg/msmnile/powercfg-utils.sh index 388a727f5..07b51f0b4 100644 --- a/app/src/main/assets/powercfg/msmnile/powercfg-utils.sh +++ b/app/src/main/assets/powercfg/msmnile/powercfg-utils.sh @@ -515,12 +515,12 @@ yuan_shen_opt_run() { taskset -p "F" "$tid" > /dev/null 2>&1 ;; "UnityMain") - taskset -p "F0" "$tid" > /dev/null 2>&1 - taskset -p "80" "$tid" > /dev/null 2>&1 + taskset -p "80" "$tid" > /dev/null 2>&1 || taskset -p "F0" "$tid" > /dev/null 2>&1 ;; # "UnityGfxDevice"*|"UnityMultiRende"*|"NativeThread"*|"UnityChoreograp"*) "UnityGfxDevice"*|"UnityMultiRende"*) - taskset -p "70" "$tid" > /dev/null 2>&1 + # taskset -p "70" "$tid" > /dev/null 2>&1 + taskset -p "F0" "$tid" > /dev/null 2>&1 ;; *) taskset -p "7F" "$tid" > /dev/null 2>&1 diff --git a/app/src/main/res/values/configs.xml b/app/src/main/res/values/configs.xml index 1a4d20611..c24456c87 100644 --- a/app/src/main/res/values/configs.xml +++ b/app/src/main/res/values/configs.xml @@ -196,6 +196,6 @@ com.baidu.tieba:id/splash_ad_btn_skip - 3302 - https://vtools.oss-cn-beijing.aliyuncs.com/addin/swap-controller-3.3.2.zip + 3303 + https://vtools.oss-cn-beijing.aliyuncs.com/addin/swap-controller-3.3.3.zip