Skip to content

Commit

Permalink
DEV 22.07.24
Browse files Browse the repository at this point in the history
- 新增 Helio P35/G35/G37支持
- 改进 小核能耗模型
- 改进 框架执行效率
- 修复 熄屏指纹识别偏慢
- ...合计19个commit

Signed-off-by: Matt Yang <yccy@outlook.com>
  • Loading branch information
yc9559 committed Jul 24, 2022
1 parent 29230a3 commit 98af5e4
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 17 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 更新日志

## DEV 22.07.24

- 新增 Helio P35/G35/G37支持
- 改进 小核能耗模型
- 改进 框架执行效率
- 修复 熄屏指纹识别偏慢

## DEV 22.07.09

- 新增 sdm8g1+支持
Expand Down
26 changes: 16 additions & 10 deletions config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"input": {
"enable": true,
"swipeThd": 0.01,
"swipeThd": 0.03,
"gestureThdX": 0.03,
"gestureThdY": 0.03,
"gestureDelayTime": 2.0,
Expand Down Expand Up @@ -54,15 +54,15 @@
"auto": { "bg": "", "fg": "", "idle": "", "touch": "", "boost": "" },
"norm": { "bg": "", "fg": "all", "idle": "all", "touch": "all", "boost": "all" },
"bg": { "bg": "", "fg": "c0", "idle": "c0", "touch": "c0", "boost": "c0" },
"ui": { "bg": "", "fg": "all", "idle": "c1", "touch": "c1", "boost": "all" },
"ui": { "bg": "", "fg": "all", "idle": "all", "touch": "c1", "boost": "all" },
"crit": { "bg": "", "fg": "all", "idle": "all", "touch": "c1", "boost": "c1" },
"gtcoop": { "bg": "", "fg": "all", "idle": "all", "touch": "c1", "boost": "all" },
"gtmain": { "bg": "", "fg": "all", "idle": "all", "touch": "c2", "boost": "all" }
},
"prio": {
"auto": { "bg": 0, "fg": 0, "idle": 0, "touch": 0, "boost": 0 },
"norm": { "bg": -1, "fg": -1, "idle": -1, "touch": -1, "boost": -1 },
"bg": { "bg": -3, "fg": 139, "idle": 139, "touch": 139, "boost": 139 },
"norm": { "bg": -1, "fg": -1, "idle": 120, "touch": 120, "boost": 130 },
"coop": { "bg": -3, "fg": 124, "idle": 122, "touch": 122, "boost": 130 },
"ui": { "bg": -3, "fg": 120, "idle": 110, "touch": 98, "boost": 116 },
"rtusr": { "bg": 98, "fg": 98, "idle": 97, "touch": 97, "boost": 98 },
Expand Down Expand Up @@ -97,14 +97,18 @@
"pinned": true,
"rules": [
{ "k": "^(TaskSnapshot|Greezer|CachedApp|SystemPressure|SensorService)|[Mm]emory", "ac": "bg", "pc": "auto" },
{ "k": "^Async", "ac": "auto", "pc": "norm" },
{ "k": ".", "ac": "auto", "pc": "auto" }
]
},
{
"name": "SystemUI",
"regex": "com.android.systemui",
"pinned": true,
"rules": [{ "k": "^(Jit thread pool|HeapTaskDaemon|FinalizerDaemon|ReferenceQueueD)", "ac": "bg", "pc": "auto" }]
"rules": [
{ "k": "^(Jit thread pool|HeapTaskDaemon|FinalizerDaemon|ReferenceQueueD)", "ac": "bg", "pc": "auto" },
{ "k": ".", "ac": "auto", "pc": "auto" }
]
},
{
"name": "MediaProvider",
Expand Down Expand Up @@ -143,16 +147,16 @@
"rules": [
{ "k": "/MAIN_THREAD/", "ac": "ui", "pc": "ui" },
{ "k": "^(UnityMain|RenderThread |GameThread)", "ac": "gtmain", "pc": "auto" },
{ "k": "^(Unity|Worker Thread|TaskGraph|RHIThread)", "ac": "gtcoop", "pc": "auto" },
{ "k": "^(Unity|Worker Thread|TaskGraph|RHIThread|Thread-|Job.Worker)", "ac": "gtcoop", "pc": "auto" },
{ "k": "^(RenderThread|GLThread|JNISurfaceText|IJK_External_Re)|[Aa]nim|([.]raster|[.]ui)$", "ac": "ui", "pc": "ui" },
{ "k": "^(Chrome_InProc|CrRendererMain|CrGpuMain|CompositorTile)", "ac": "norm", "pc": "norm" },
{ "k": "^(Chrome_InProc|CrRendererMain|CrGpuMain|CompositorTile)", "ac": "norm", "pc": "auto" },
{ "k": "^(Viz|Chrome_|Compositor)|[Vv]sync|mali-", "ac": "ui", "pc": "ui" },
{ "k": "^(OkHttp|Ysa|Xqa|Rx|TVKDL|APM|tp-|cgi-|ODCP-|Bugly|xlog_)", "ac": "bg", "pc": "auto" },
{ "k": "^(OkHttp|Ysa|Xqa|Rx|APM|TVKDL-|tp-|cgi-|ODCP-|Bugly|xlog_)", "ac": "bg", "pc": "auto" },
{ "k": "^(xg_vip_service|Profile|SearchDaemon|default_matrix|FrameDecoder|FrameSeq)", "ac": "bg", "pc": "auto" },
{ "k": "^(GPU completion|HWC release|hwui|FramePolicy|ScrollPolicy|ged-swd)", "ac": "bg", "pc": "rtusr" },
{ "k": "^(JS|libweexjsb|WeexJsBridge|mqt_native|mqt_js|JavaScriptTh)", "ac": "norm", "pc": "coop" },
{ "k": "^(pool-|glide-|launcher-)|[Dd]ownload|[Ss]chedule|[Ww]ork|[Pp]ool|[Dd]efau|Fresco", "ac": "norm", "pc": "coop" },
{ "k": ".", "ac": "norm", "pc": "norm" }
{ "k": "^(pool-|glide-|launcher-|Fresco)|[Dd]ownload|[Ss]chedule|[Ww]ork|[Pp]ool|[Dd]efau", "ac": "norm", "pc": "coop" },
{ "k": ".", "ac": "norm", "pc": "auto" }
]
}
]
Expand Down Expand Up @@ -199,6 +203,7 @@
"sched.scene": "touch"
},
"trigger": {
"cpu.latencyTime": 0.0,
"cpu.margin": 0.4,
"sched.scene": "touch"
},
Expand Down Expand Up @@ -239,7 +244,8 @@
"sched.scene": "touch"
},
"trigger": {
"cpu.margin": 0.4,
"cpu.latencyTime": 0.0,
"cpu.margin": 0.3,
"sched.scene": "touch"
},
"gesture": {
Expand Down
4 changes: 2 additions & 2 deletions magisk/module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=uperf
name=Uperf
version=v3(22.07.09)
versionCode=220709
version=v3(22.07.24)
versionCode=220724
author=Matt Yang
description=Userspace performance controller for android. Repo: https://github.com/yc9559/uperf/
updateJson=https://github.com/yc9559/uperf/raw/master/version.json
1 change: 1 addition & 0 deletions magisk/script/libsysinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ get_config_name() {
"universal8895") echo "e8895" ;;
"universal8890") echo "e8890" ;;
"universal7420") echo "e7420" ;;
"mt6765") echo "mtp35" ;; # Helio P35(mt6765)/G35(mt6765g)/G37(mt6765h)
"mt6768") echo "mtg80" ;; # Helio P65(mt6768)/G70(mt6769v)/G80(mt6769t)/G85(mt6769z)
"mt6785") echo "mtg90t" ;;
"mt6833") echo "mtd720" ;;
Expand Down
2 changes: 1 addition & 1 deletion magisk/script/powercfg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Uperf",
"author": "Matt Yang",
"version": "22.07.09",
"version": "22.07.24",
"versionCode": 3,
"features": {
"strict": true,
Expand Down
3 changes: 2 additions & 1 deletion magisk/script/powercfg_once.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ unify_cgroup() {
rmdir /dev/cpuset/foreground/boost

# work with uperf/ContextScheduler
change_task_cgroup "surfaceflinger|system_server" "foreground" "cpuset"
change_task_cgroup "surfaceflinger" "" "cpuset"
change_task_cgroup "system_server" "foreground" "cpuset"
change_task_cgroup "netd|allocator" "foreground" "cpuset"
change_task_cgroup "hardware.media.c2|vendor.mediatek.hardware" "background" "cpuset"
change_task_cgroup "aal_sof|kfps|dsp_send_thread|vdec_ipi_recv|mtk_drm_disp_id|disp_feature|hif_thread|main_thread|rx_thread|ged_" "background" "cpuset"
Expand Down
2 changes: 1 addition & 1 deletion magisk/script/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ install_uperf() {
echo ""
echo "* Uperf https://github.com/yc9559/uperf/"
echo "* Author: Matt Yang"
echo "* Version: v3(22.07.09)"
echo "* Version: v3(22.07.24)"
echo ""

echo "- Installing uperf"
Expand Down
4 changes: 2 additions & 2 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"versionCode": 220709,
"versionCode": 220724,
"version": "v3",
"zipUrl": "https://github.com/yc9559/uperf/releases/download/dev-22.07.09/uperf-dev-22.07.09.zip",
"zipUrl": "https://github.com/yc9559/uperf/releases/download/dev-22.07.24/uperf-dev-22.07.24.zip",
"changelog": "https://github.com/yc9559/uperf/raw/master/changelog.md"
}

0 comments on commit 98af5e4

Please sign in to comment.