Ultgamenroot
Ultgamenroot
/system/bin/sh
echo "
"
echo "[ Universal Game Optimization Script by Droid Everything ]"
echo "[ No ROOT version - FOR NON ROOTED DEVICES ]"
sleep 0.5
echo "
"
# Check if package name, graphics quality, and downscaling factor are provided as
arguments
if [ $# -lt 2 ]; then
echo "Error: Please provide the package name of the game and the graphics
quality [ low, medium, high, full ]"
exit 1
fi
echo "
■ Running Calculations:
"
sleep 0.5
echo " ■ Step 1: Assigning game package name to variable: $gamepackage"
sleep 0.5
echo " ■ Step 3: Performance mode is being set for: [ $appname ]"
sleep 0.5
echo " ■ Step 4: Displaying supported Display Refresh Rate: [ $(dumpsys display |
grep -o -E 'fps=[0-9]+(\.[0-9]+)?' | cut -d'=' -f2 | sort -u | head -n1) Hz ]"
sleep 0.5
echo " ■ Step 5: Enabled FPS throttling for stability. FPS currently capped to:
$fps FPS "
sleep 0.5
echo "
■ Applying settings according to calculations:
"
sleep 0.5
echo " ■ Step 13: Setting $appname priority with nice "
sleep 0.5
echo " ■ Step 14: Setting $appname priority with renice "
sleep 0.5
echo " ■ Step 15: Priority set successfully for $appname "
sleep 0.5
echo "
FPS is set 10 FPS less than supported refresh rate to avoid fluctuations
"
echo "
[ Code written by Droid_Everything ] "
echo "
"
sleep 0.5