0% found this document useful (0 votes)
13 views2 pages

FPS Stabilization Module

This script is designed to optimize frame rate and refresh rate settings for improved FPS stability on devices. It enables VSync stability, optimizes frame pacing, forces high refresh rates, and applies various tweaks for GPU scheduling and touch synchronization. The script logs each step of the process and concludes with a success message.

Uploaded by

oleksiyart15
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

FPS Stabilization Module

This script is designed to optimize frame rate and refresh rate settings for improved FPS stability on devices. It enables VSync stability, optimizes frame pacing, forces high refresh rates, and applies various tweaks for GPU scheduling and touch synchronization. The script logs each step of the process and concludes with a success message.

Uploaded by

oleksiyart15
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

#!

/system/bin/sh
# Frame Rate + Refresh Rate + FPS Stabilization Module

MOD_NAME="FPS_Stabilization_Module"
LOG_FILE="/data/local/tmp/fps_module.log"

log_msg() {
echo "[FPS-MODULE] $1" | tee -a $LOG_FILE
}

log_msg "Starting $MOD_NAME..."

# -------------------------------
# Enable VSync Stability
# -------------------------------
setprop [Link].enable_hwc_vds 1
setprop [Link].latch_unsignaled 1
setprop [Link].disable_backpressure 0
setprop [Link].use_phase_offsets_as_durations 1

log_msg "VSync stabilization enabled"

# -------------------------------
# Frame pacing optimization
# -------------------------------
setprop [Link].use_buffer_age 1
setprop [Link].disable_vsync false
setprop [Link].render_dirty_regions false
setprop [Link] false

log_msg "Frame pacing optimized"

# -------------------------------
# Force high refresh rate (если поддерживается экраном)
# -------------------------------
settings put system peak_refresh_rate 120
settings put system min_refresh_rate 90
settings put system user_refresh_rate 120

log_msg "High refresh rate forced"

# -------------------------------
# FPS Stability Tweaks
# -------------------------------
setprop [Link].fps_stabilization 1
setprop [Link] 1
setprop [Link] gpu
setprop [Link] 1

log_msg "FPS stabilization enabled"

# -------------------------------
# Touch + frame sync boost
# -------------------------------
setprop [Link].high_fps_late_app_phase_offset_ns 1000000
setprop [Link].high_fps_late_sf_phase_offset_ns 1000000
setprop [Link].high_fps_early_app_phase_offset_ns 500000
setprop [Link].high_fps_early_sf_phase_offset_ns 500000
log_msg "Frame sync optimized"

# -------------------------------
# GPU scheduling tweak
# -------------------------------
setprop [Link].frame_rate_control 1
setprop [Link] 1

log_msg "GPU frame control enabled"

# -------------------------------
# Final
# -------------------------------
log_msg "FPS module applied successfully!"
exit 0

You might also like