-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRobloxFpsUnlocker.bat
42 lines (34 loc) · 1.34 KB
/
RobloxFpsUnlocker.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
setlocal enabledelayedexpansion
set "base_path=%userprofile%\AppData\Local\Roblox\Versions"
set "new_folder_name=ClientSettings"
rem Check if RobloxPlayerBeta.exe exists
for /f "tokens=*" %%i in ('where /r "%base_path%" RobloxPlayerBeta.exe') do (
set "roblox_folder=%%~dpi"
goto :create_folder
)
rem If RobloxPlayerBeta.exe doesn't exist, show a message box and exit
echo Roblox Not Found
echo Please make sure Roblox is installed in the expected directory (AppData\\Local\\Roblox).
pause
exit /b
:create_folder
set "client_settings_path=%roblox_folder%%new_folder_name%"
if not exist "%client_settings_path%\" (
mkdir "%client_settings_path%"
rem Prompt user for input
set /p "target_fps=Enter the desired FPS cap (e.g., 999): "
rem Write to the JSON file using user input
(
echo {
echo "DFIntTaskSchedulerTargetFps": !target_fps!,
echo "FFlagReportFpsAndGfxQualityPercentiles": false,
echo }
) > "%client_settings_path%\ClientAppSettings.json"
echo Successfully set FPS cap to !target_fps!.
echo Kindly be aware that in order to apply the FPS cap, it may be necessary to run this program every Thursday / Wednesday, as Roblox regularly updates its client.
) else (
echo The FPS cap is already set up.
)
pause
exit /b