diff --git a/changelog.md b/changelog.md index da9cd7b..fd4c02a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # 更新日志 +## DEV 22.07.24 + +- 新增 Helio P35/G35/G37支持 +- 改进 小核能耗模型 +- 改进 框架执行效率 +- 修复 熄屏指纹识别偏慢 + ## DEV 22.07.09 - 新增 sdm8g1+支持 diff --git a/config/template.json b/config/template.json index 5f37be6..052a51d 100644 --- a/config/template.json +++ b/config/template.json @@ -24,7 +24,7 @@ }, "input": { "enable": true, - "swipeThd": 0.01, + "swipeThd": 0.03, "gestureThdX": 0.03, "gestureThdY": 0.03, "gestureDelayTime": 2.0, @@ -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 }, @@ -97,6 +97,7 @@ "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" } ] }, @@ -104,7 +105,10 @@ "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", @@ -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" } ] } ] @@ -199,6 +203,7 @@ "sched.scene": "touch" }, "trigger": { + "cpu.latencyTime": 0.0, "cpu.margin": 0.4, "sched.scene": "touch" }, @@ -239,7 +244,8 @@ "sched.scene": "touch" }, "trigger": { - "cpu.margin": 0.4, + "cpu.latencyTime": 0.0, + "cpu.margin": 0.3, "sched.scene": "touch" }, "gesture": { diff --git a/magisk/module.prop b/magisk/module.prop index fd4b487..6267b5a 100644 --- a/magisk/module.prop +++ b/magisk/module.prop @@ -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 diff --git a/magisk/script/libsysinfo.sh b/magisk/script/libsysinfo.sh index a81bc44..2080d0f 100644 --- a/magisk/script/libsysinfo.sh +++ b/magisk/script/libsysinfo.sh @@ -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" ;; diff --git a/magisk/script/powercfg.json b/magisk/script/powercfg.json index 6748edc..a3bd6d1 100644 --- a/magisk/script/powercfg.json +++ b/magisk/script/powercfg.json @@ -1,7 +1,7 @@ { "name": "Uperf", "author": "Matt Yang", - "version": "22.07.09", + "version": "22.07.24", "versionCode": 3, "features": { "strict": true, diff --git a/magisk/script/powercfg_once.sh b/magisk/script/powercfg_once.sh index 99a0e3f..961f156 100644 --- a/magisk/script/powercfg_once.sh +++ b/magisk/script/powercfg_once.sh @@ -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" diff --git a/magisk/script/setup.sh b/magisk/script/setup.sh index 734c21b..f05f632 100644 --- a/magisk/script/setup.sh +++ b/magisk/script/setup.sh @@ -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" diff --git a/version.json b/version.json index f2116dc..529b6f0 100644 --- a/version.json +++ b/version.json @@ -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" }