diff --git a/README.md b/README.md index e9a2665..5723fd4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This module aims to increase Qualcomm Snapdragon powered devices by up to 75% but at the same time reduces power consumption by up to 25% seamlessly. ## This is a Fork! -- For Android 13 ROMs (Original module causes lag :c). +- For Android 12+ ROMs (Original module causes lag :c). - Mentioned issue found and fixed on Moto G7 Power (Ocean). ## What it does diff --git a/common/post-fs-data.sh b/common/post-fs-data.sh index b3ce870..911c879 100644 --- a/common/post-fs-data.sh +++ b/common/post-fs-data.sh @@ -4,4 +4,4 @@ write /proc/sys/vm/page-cluster 0 write /sys/block/zram0/max_comp_streams 4 # Set zram configurations -setprop ro.vendor.qti.config.zram true +resetprop ro.vendor.qti.config.zram true diff --git a/common/service.sh b/common/service.sh index bcf8050..789199d 100644 --- a/common/service.sh +++ b/common/service.sh @@ -1,6 +1,26 @@ #!/system/bin/sh MODDIR=${0%/*} +# Resetprop +A_API=$(getprop ro.build.version.sdk) +if [[ $A_API -ge 31 ]]; then + # GPU Turbo Boost + resetprop debug.composition.type auto + resetprop hwui.disable_vsync false + resetprop persist.sys.composition.type auto + resetprop debug.sf.enable_gl_backpressure 0 +elif [[ $A_API -le 30 ]]; then + # GPU Turbo Boost + resetprop debug.composition.type c2d + resetprop debug.composition.type gpu + resetprop hwui.disable_vsync true + resetprop persist.sys.composition.type c2d + resetprop persist.sys.composition.type gpu + resetprop debug.sf.enable_gl_backpressure 1 +fi +# Reset SurfaceFlinger +service call SurfaceFlinger 1008 + # GPU Turbo Boost late_start service mode write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor performance diff --git a/common/system.prop b/common/system.prop index 10fcfba..987030c 100644 --- a/common/system.prop +++ b/common/system.prop @@ -1,14 +1,9 @@ # GPU Turbo Boost system properties -debug.composition.type=c2d -debug.composition.type=gpu debug.enabletr=true debug.overlayui.enable=1 debug.performance.tuning=1 hw3d.force=1 -hwui.disable_vsync=false hwui.render_dirty_regions=false -persist.sys.composition.type=c2d -persist.sys.composition.type=gpu persist.sys.ui.hw=1 ro.config.enable.hw_accel=true ro.product.gpu.driver=1 @@ -36,4 +31,4 @@ ro.vendor.qti.core.ctl_min_cpu=2 # Touchscreen persist.vendor.qti.inputopts.enable=true -persist.vendor.qti.inputopts.movetouchslop=0.6 \ No newline at end of file +persist.vendor.qti.inputopts.movetouchslop=0.6 diff --git a/install.sh b/install.sh index 18afd91..bed2174 100644 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ LATESTARTSERVICE=true print_modname() { ui_print "*************************************" - ui_print " GPU Turbo Boost v6.2.1 Tiramisu " + ui_print " GPU Turbo Boost v6.2.2 Fork " ui_print " Magisk installer " ui_print " By: EmperorEye1993 @ xda-developers " ui_print " Modded By: JosFlix7 " @@ -19,4 +19,4 @@ on_install() { set_permissions() { set_perm_recursive $MODPATH 0 0 0755 0644 -} \ No newline at end of file +} diff --git a/module.prop b/module.prop index 6ade882..4a051a9 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=GPUTurboBoostJos -name=GPU Turbo Boost (Tiramisu Mod) -version=6.2.1 -versionCode=621 +name=GPU Turbo Boost Fork +version=6.2.2 +versionCode=622 author=EmperorEye1993 & JosFlix7 description=This module aims to increase Android powered devices by up to 75% but at the same time reduces power consumption by up to 25% seamlessly.