Advertisement
scriptingtales

Roblox FPS unlocker test for Mac

Mar 14th, 2024
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. targetFps=10000
  4. robloxPath="/Applications/Roblox.app"
  5.  
  6. if [ ! -d $robloxPath ]; then
  7.   $robloxPath="~$robloxPath"
  8.  
  9.   if [ ! -d $robloxPath ]; then
  10.     echo "Roblox installation folder couldn't be found."
  11.     exit
  12.   fi
  13. fi
  14.  
  15. clientSettingsPath="$robloxPath/Contents/MacOS/ClientSettings"
  16.  
  17. if [ ! -d "$clientSettingsPath" ]; then
  18.   mkdir $clientSettingsPath
  19. fi
  20.  
  21. echo "Do you want to use the Vulkan renderer? This will remove the FPS cap completely, but might break Roblox if you use an external monitor. (yes/no): "
  22. read useVulkan
  23.  
  24. case $useVulkan in
  25.   yes)
  26.     clientSettings=" \
  27.    { \
  28.      \"DFIntTaskSchedulerTargetFps\": $targetFps, \
  29.      \"FFlagDebugGraphicsDisableMetal\": \"true\", \
  30.      \"FFlagDebugGraphicsPreferVulkan\": \"true\" \
  31.    } \
  32.    "
  33.     ;;
  34.  
  35.   no)
  36.     clientSettings=" \
  37.    { \
  38.      \"DFIntTaskSchedulerTargetFps\": $targetFps \
  39.    } \
  40.    "
  41.     ;;
  42.  
  43.   *)
  44.     echo "Unknown option."
  45.     exit 1
  46.     ;;
  47. esac
  48.  
  49. echo $clientSettings > "$clientSettingsPath/ClientAppSettings.json"
  50. echo "The FPS unlocker has been installed in $robloxPath."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement