Right click on just the bat that doesnt not say steam or epic after it (The Last of Us Part II Remastered.bat) , edit in notepad Change path of steam and epic with your game's path, so, then paste that .bat file that you edited and the bin in the game folder try the bat file, you have to press yes 5 times as prompted then will ask for 1)steam or 2)epic
REM Define potential game paths set "SteamPath=C:\Program Files (x86)\Steam\steamapps\common\The Last of Us Part II Remastered" set "EpicPath=C:\Program Files\Epic Games\The Last of Us Part II Remastered" set "GameExe=tlou-ii.exe" set "GamePath=" set "GameDir="
Just change after = and do keep that " at end
If you changed their file path to your game's path Any would work. then Right-click on the .bat script what are you using > Send to > Desktop. For easy to use.
Bro i didnt understand s#*!, where do i have to paste the game path when i edit the .bat with notepad? and what do i have to do with this?:
REM Define potential game paths set "SteamPath=C:\Program Files (x86)\Steam\steamapps\common\The Last of Us Part II Remastered" set "EpicPath=C:\Program Files\Epic Games\The Last of Us Part II Remastered" set "GameExe=tlou-ii.exe" set "GamePath=" set "GameDir="
Just open the .bat that you may be using, first put that in the game folder with the bin folder
now right click on that .bat and edit with notepad
Then you may see it written as this way
set "SteamPath=C:\Program Files (x86)\Steam\steamapps\common\The Last of Us Part II Remastered" now you see whereit says steampath= "ends with here in between you put your game's desired game path for example mine is S:\The Last of Us Part II Remastered So, i would put it "SteamPath=S:\The Last of Us Part II Remastered"
do the same for set "EpicPath=C:\Program Files\Epic Games\The Last of Us Part II Remastered"
then keep this as it is set "GameExe=tlou-ii.exe" set "GamePath=" set "GameDir="
and here's how it would finally look
REM Define potential game paths set "SteamPath=S:\The Last of Us Part II Remastered" set "EpicPath=S:\The Last of Us Part II Remastered" set "GameExe=tlou-ii.exe" set "GamePath=" set "GameDir="
easy Now if you want to do it for any other game You may change the steampath and epic path to that game's specific path And also set "GameExe= " to that desired game's exe.
https://imgur.com/a/jA1YDKA look at this for better understanding
Yoo, my cpu thanks u right now, from 85% load all the time, now im in the 60's, no more high temp, sometimes it gets to 85 for a second when loading shaders but than 50's - 60's, do you have a shader compiler or smth like that for us ? cuz this paired with that is cheats for the system? And another question, is this mod intended to reduce cpu usage cuz if it is it does it best ! XD
Hello, it's not cheating for the system. It's a "force" RAM cleanup tool from Microsoft Sysinternals. It can affect the CPU because it also reduces: processes, threads, and handles usage. Also important, is that the program does not close active processes. That means if manually disabling unnecessary running/startup processes/services it will be even better. You can do it with - Autoruns64. The Shader compiler is not allowed to share here.
have you try switching from nvidia game driver to current studio driver? somehow I get 8 - 11 fps more. went from 57 to 68 and no return mode from 70 to 81 I am using rtx 3070 with 8gb vram and thread optimization on
there are problems do to the path having spaces in it, I got an error like this: \Steam\steamapps\common\The was unexpected at this time. and fixed the problem using ChatGPT
Key Fixes:
Wrapped all paths with spaces in quotes ("%GamePath%") to prevent parsing issues.
Avoided using \ at the end of cd /d "%~dp0\bin" without quotes.
Made sure all echo statements are clean and error-free.
Corrected spelling of “successfully”.
@echo off cd /d "%~dp0\bin" echo RAM is cleaning... echo Empty Working Set... echo. echo Clearing the working set... rammap64.exe -ew echo Empty System Working Set... echo. echo Clearing the system working set... rammap64.exe -es echo Empty Modified Page List... echo. echo Clearing the modified page list... rammap64.exe -em echo Empty Standby List... echo. echo Clearing the standby list... rammap64.exe -et echo Empty Priority 0 Standby List... echo. echo Clearing the priority 0 standby list... rammap64.exe -e0 echo Processes and services closed successfully and RAM is freed up. :: Batch script to launch The Last of Us Part II Remastered with High CPU Priority :: Define the path to the game's executable set "GamePath=C:\Program Files (x86)\Steam\steamapps\common\The Last of Us Part II" set "ExecutableName=tlou-ii.exe" :: Check if the game directory exists if not exist "%GamePath%\" ( echo Error: Game directory not found: echo "%GamePath%\" pause exit /b 1 ) :: Check if the executable exists if not exist "%GamePath%\%ExecutableName%" ( echo Error: Executable not found: echo "%GamePath%\%ExecutableName%" pause exit /b 1 ) :: Change the current directory to the game's directory cd /d "%GamePath%" :: Launch the game with High priority echo Launching "%ExecutableName%" with High CPU Priority... start "" /high "%GamePath%\%ExecutableName%" exit /b 0
RAMMap doesn't just let you clear the standby list. It can also clear other memory areas like the Modified Page List, process working sets, etc. So technically RAMMap more powerful. For example ISLC just do a clean standby list when not enough RAM in background.
20 comments
(The Last of Us Part II Remastered.bat) , edit in notepad
Change path of steam and epic with your game's path, so, then paste that .bat file that you edited and the bin in the game folder
try the bat file, you have to press yes 5 times as prompted then will ask for 1)steam or 2)epic
REM Define potential game paths
set "SteamPath=C:\Program Files (x86)\Steam\steamapps\common\The Last of Us Part II Remastered"
set "EpicPath=C:\Program Files\Epic Games\The Last of Us Part II Remastered"
set "GameExe=tlou-ii.exe"
set "GamePath="
set "GameDir="
Just change after = and do keep that " at end
If you changed their file path to your game's path
Any would work.
then Right-click on the .bat script what are you using > Send to > Desktop. For easy to use.
REM Define potential game paths
set "SteamPath=C:\Program Files (x86)\Steam\steamapps\common\The Last of Us Part II Remastered"
set "EpicPath=C:\Program Files\Epic Games\The Last of Us Part II Remastered"
set "GameExe=tlou-ii.exe"
set "GamePath="
set "GameDir="
Just open the .bat that you may be using, first put that in the game folder with the bin folder
now right click on that .bat and edit with notepad
Then you may see it written as this way
set "SteamPath=C:\Program Files (x86)\Steam\steamapps\common\The Last of Us Part II Remastered"
now you see whereit says steampath= "ends with here
in between you put your game's desired game path
for example mine is S:\The Last of Us Part II Remastered
So, i would put it "SteamPath=S:\The Last of Us Part II Remastered"
do the same for set "EpicPath=C:\Program Files\Epic Games\The Last of Us Part II Remastered"
then keep this as it is set
"GameExe=tlou-ii.exe"
set "GamePath="
set "GameDir="
and here's how it would finally look
REM Define potential game paths
set "SteamPath=S:\The Last of Us Part II Remastered"
set "EpicPath=S:\The Last of Us Part II Remastered"
set "GameExe=tlou-ii.exe"
set "GamePath="
set "GameDir="
easy
Now if you want to do it for any other game
You may change the steampath and epic path to that game's specific path
And also set "GameExe= " to that desired game's exe.
https://imgur.com/a/jA1YDKA
look at this for better understanding
And another question, is this mod intended to reduce cpu usage cuz if it is it does it best ! XD
somehow I get 8 - 11 fps more. went from 57 to 68 and no return mode from 70 to 81
I am using rtx 3070 with 8gb vram and thread optimization on
\Steam\steamapps\common\The was unexpected at this time.
and fixed the problem using ChatGPT
Key Fixes:
at the end of
cd /d "%~dp0\bin"
without quotes.@echo off
cd /d "%~dp0\bin"
echo RAM is cleaning...
echo Empty Working Set...
echo.
echo Clearing the working set...
rammap64.exe -ew
echo Empty System Working Set...
echo.
echo Clearing the system working set...
rammap64.exe -es
echo Empty Modified Page List...
echo.
echo Clearing the modified page list...
rammap64.exe -em
echo Empty Standby List...
echo.
echo Clearing the standby list...
rammap64.exe -et
echo Empty Priority 0 Standby List...
echo.
echo Clearing the priority 0 standby list...
rammap64.exe -e0
echo Processes and services closed successfully and RAM is freed up.
:: Batch script to launch The Last of Us Part II Remastered with High CPU Priority
:: Define the path to the game's executable
set "GamePath=C:\Program Files (x86)\Steam\steamapps\common\The Last of Us Part II"
set "ExecutableName=tlou-ii.exe"
:: Check if the game directory exists
if not exist "%GamePath%\" (
echo Error: Game directory not found:
echo "%GamePath%\"
pause
exit /b 1
)
:: Check if the executable exists
if not exist "%GamePath%\%ExecutableName%" (
echo Error: Executable not found:
echo "%GamePath%\%ExecutableName%"
pause
exit /b 1
)
:: Change the current directory to the game's directory
cd /d "%GamePath%"
:: Launch the game with High priority
echo Launching "%ExecutableName%" with High CPU Priority...
start "" /high "%GamePath%\%ExecutableName%"
exit /b 0
Can i use it for every game i have?