Skip to content

Commit

Permalink
更新调度配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
helloklf committed Dec 6, 2021
1 parent b294efb commit 6c66b8d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {
applicationId "com.omarea.vtools"
minSdkVersion 23
targetSdkVersion 30
versionCode 202111131
versionCode 202112061
versionName "4.7.3"
externalNativeBuild {
cmake {
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/assets/powercfg/kona/powercfg-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions app/src/main/assets/powercfg/lahaina/powercfg-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 6 additions & 2 deletions app/src/main/assets/powercfg/msmnile/powercfg-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &

6 changes: 3 additions & 3 deletions app/src/main/assets/powercfg/msmnile/powercfg-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/configs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,6 @@
<item>com.baidu.tieba:id/splash_ad_btn_skip</item>
</string-array>

<string name="swap_module_target_version">3302</string>
<string name="swap_module_download_url">https://vtools.oss-cn-beijing.aliyuncs.com/addin/swap-controller-3.3.2.zip</string>
<string name="swap_module_target_version">3303</string>
<string name="swap_module_download_url">https://vtools.oss-cn-beijing.aliyuncs.com/addin/swap-controller-3.3.3.zip</string>
</resources>

0 comments on commit 6c66b8d

Please sign in to comment.