#!/usr/bin/bash
adb devices
echo "RENSO"
echo
echo "1 - 2048p 80Hz - CPU 8 - GPU 7 - 80 FPS - 2048x2253 - FFR 4 (Önerilen)"
echo "2 - 2048p 90Hz - CPU 8 - GPU 7 - 120 FPS - 2048x2253 - FFR 3"
echo "3 - 1440p 120Hz - CPU 8 - GPU 7 - 120 FPS - 1440x1584 - FFR 1"
echo "4 - 1440p 90Hz - CPU 4 - GPU 4 - 90 FPS - 1440x1584 - FFR 2 (Quest2 Varsayılan)"
echo "Önayar seçin: "
read opninin
if(( $opninin==3 ));then adb shell setprop debug.oculus.cpuLevel 8 && adb shell setprop debug.oculus.gpuLevel 7 && adb shell setprop debug.oculus.refreshRate 120 && adb shell setprop debug.oculus.textureWidth 1440 && adb shell setprop debug.oculus.textureHeight 1584 && adb shell setprop debug.oculus.foveation.level 1;
elif(( $opninin==2 ));then adb shell setprop debug.oculus.cpuLevel 8 && adb shell setprop debug.oculus.gpuLevel 7 && adb shell setprop debug.oculus.refreshRate 90 && adb shell setprop debug.oculus.textureWidth 2048 && adb shell setprop debug.oculus.textureHeight 2253 && adb shell setprop debug.oculus.foveation.level 3;
elif(( $opninin==1 ));then adb shell setprop debug.oculus.cpuLevel 8 && adb shell setprop debug.oculus.gpuLevel 7 && adb shell setprop debug.oculus.refreshRate 80 && adb shell setprop debug.oculus.textureWidth 2048 && adb shell setprop debug.oculus.textureHeight 2253 && adb shell setprop debug.oculus.foveation.level 4;
elif(( $opninin==4 ));then adb shell setprop debug.oculus.cpuLevel 4 && adb shell setprop debug.oculus.gpuLevel 4 && adb shell setprop debug.oculus.refreshRate 90 && adb shell setprop debug.oculus.textureWidth 1440 && adb shell setprop debug.oculus.textureHeight 1584 && adb shell setprop debug.oculus.foveation.level 2;fi
echo
echo "Önayar $opninin ayarlandı."
echo "CPU Level $(adb shell getprop debug.oculus.cpuLevel)"
echo "GPU Level $(adb shell getprop debug.oculus.gpuLevel)"
echo "Yenileme hızı $(adb shell getprop debug.oculus.refreshRate)Hz"
echo "Çözünürlük $(adb shell getprop debug.oculus.textureWidth)x$(adb shell getprop debug.oculus.textureHeight)"
echo "FFR $(adb shell getprop debug.oculus.foveation.level)"
echo
echo "Çıkmak için ENTER tuşuna basın."
read a
