SNAPSPERF CHANGELOG V9 BETA RSE (REMAKE SPECIAL EDITION)

SNAPSPERF CHANGELOG V9 BETA RSE (REMAKE SPECIAL EDITION)

By @ZUANVFX

SNAPSPERF X BETTER KERNEL

Features/Changelog

Changelog & Feature Explanation of Optimization Script


This script contains a series of system tweaks and optimizations that run once the Android device has finished booting. Its goal is to improve performance, responsiveness, and battery efficiency.


1. Battery Optimization

echo 100 > /sys/class/qcom-battery/fake_soh: Fixes the battery health report (State of Health) to 100%, which can prevent performance reduction caused by the system thinking the battery is degraded.

echo 1 > /sys/class/qcom-battery/sport_mode: Enables "sport mode" for battery power management, which may provide more aggressive charging/discharging responses.


2. IRQ Balance Priority

renice -n -10 -p $(pidof msm_irqbalance): Gives very high CPU priority to the msm_irqbalance process. This process distributes hardware interrupts (such as touch, network) to different CPU cores. With higher priority, it can work faster, reducing latency and making the UI feel smoother.


3. Unity Game Engine Boost

Sets sched_lib_name and sched_lib_mask_force: This feature tells the kernel scheduler to recognize the main threads and libraries used by the Unity game engine (such as UnityMain, libunity.so).

Once recognized, these critical threads will automatically be scheduled to the highest-performance CPU cores ("prime" cores), reducing lag and improving frame rate when playing Unity-based games.


4. Memory Bandwidth Boost

Finds and sets max_freq for DDR (RAM), LLCC (Cache), and L3 (Cache): The script locates memory bandwidth control points and sets their maximum frequency to the highest supported value (9999999).

Effect: Speeds up data exchange between CPU, cache, and RAM. This results in faster app/game loading, smoother game texture streaming, and more responsive multitasking.


5. Binder Debug Mask (Disable Binder Logging)

echo 0 > .../debug_mask: Disables verbose logging (very detailed log messages) for Android’s binder subsystem. Binder is the backbone of inter-process communication in Android. Reducing its logging saves CPU resources and slightly improves speed.


6. CPU Performance Tuning (Support Governor WALT)

scaling_max_freq & scaling_min_freq: Locks all CPU cores to always run at their maximum frequency (Performance Mode). This delivers the highest performance but can drain more battery.

hispeed_freq, hispeed_load, target_loads: Disables the built-in hispeed mechanism that raises CPU frequency when certain loads are reached. Since the CPU is already maxed, this is unnecessary.

input_boost_freq: Disables input boost, which normally raises CPU frequency when the screen is touched. With CPUs already locked at high frequency, this is no longer needed, saving a bit of battery.

printk settings: Greatly reduces or disables kernel console logging (printk), saving CPU cycles and avoiding unnecessary background tasks.


7. UFS Storage Boost /sys/devices/platform/soc/1d84000.ufshc/devfreq/1d84000.ufshc

Sets min_freq and target_freq to max_freq: Forces internal storage (UFS) to always run at its highest read/write speeds.

Sets governor to performance: Ensures frequency policy favors maximum performance, not power saving.

Effect: App loading, game launches, app installation, and file copying become much faster.


8. IorapFIX (I/O Preloading Fix)

resetprop -n ro.iorapd.enable false: Disables the iorapd service, which is supposed to prefetch app data to speed up app launching. On many devices, it actually causes lag and freezing. Disabling it often makes app transitions smoother.


9. Dalvik VM Optimization

dex2oat-threads: Increases the number of CPU threads used for app compilation (from .dex to .oat). With more threads (8 threads), compilation during installation or booting is much faster.


10. SELinux Permissive

setenforce 0: Switches SELinux security mode from Enforcing (strict rule enforcement) to Permissive (only warnings). This allows all modifications in this script to run without being blocked by security policies but slightly reduces device security.


11. Kernel Scheduler Tuning

A set of adjustments for kernel task scheduling (sched_*):

Optimizes how the kernel decides which task runs first.

Reduces latency and improves responsiveness for user interaction.

Disables unnecessary features such as sched_schedstats and panic to save resources.


12. Virtual Memory (VM) Tuning

dirty_ratio & dirty_background_ratio: Controls when "dirty" data (not yet written to disk) should be flushed. This balances between delaying writes (for performance) and timely writes (to prevent data loss)

swappiness (40) & vfs_cache_pressure (80): Optimized values for devices with larger RAM. Lower swappiness reduces swapping to virtual RAM, while higher cache pressure allows the system to clean filesystem caches more aggressively, freeing RAM for apps.


13. Network Optimization

tcp_congestion_control: Chooses the best available congestion control algorithm (BBR > Cubic > Westwood > Reno). Algorithms like BBR improve speed and reduce internet connection latency.

tcp_fastopen: Enables TCP Fast Open, which allows sending data earlier when creating new connections, reducing webpage loading times.


14. Stune Settings

/dev/stune/top-app/: Ensures foreground apps (top-app), such as games or the currently open app, get higher CPU resource priority (schedtune.boost).


15. GPU Tuning

The script detects GPU type (Adreno or Mali) and applies suitable optimizations.

For Adreno (Qualcomm):

Disables throttling and thermal_pwrlevel (Warning: may cause overheating!).

Forces GPU to always stay active (force_*_on) and not enter idle, removing wake-up latency.

Disables power-saving features such as popp and pwrnap.

For Mali:

Disables DVFS (Dynamic Voltage and Frequency Scaling), locking GPU to high frequency.

Sets power policy to always_on.

GED (Graphics Extension Driver) Settings:

Enables various GPU/CPU boost features during rendering, very useful for gaming.

Disables logging and debug to save resources.

GPUFreq Settings:

Ignores thermal and low-battery limits to keep GPU frequency high.

⚠️ Warning: Many tweaks in this script (especially locking CPU/GPU frequencies at maximum and disabling thermal throttling) can cause higher battery consumption and significant device heating. Use with caution and monitor temperatures.


Report Page