I tried to install this on my SteamDeck. The method described by TiagodePAlves didn't work out for me, Proton gave me an error everytime I tried to start the game. What I did to get this working is the following:
- created a link for the steam folder on the Desktop (needed because the 4GB patcher exe can't see the folder otherwise) -> command: "ln -s /home/deck/.local/share/Steam/steamapps/common /home/deck/Desktop" -> That should give you the folder "common" on your Desktop
- Installed "Protontricks" from Discover (Built-in App store) - run "Protontricks" - select "The Witcher: Enhanced Edition: 20900" - press OK - select "Select the default wineprefix" - press OK - select "Run an arbitrary executable" - press OK - search for the 4gb_patch.exe and open it - navigate to your Desktop, open the common folder, navigate to the witcher folder, enter "System" and select witcher.exe - a success message should come to your screen
That's what worked for me, maybe this could be helpful for someone :)
Okay so I tried this mod out and it did basically nothing...I have a 144 htz monitor and it runs up to 144 htz with everything maxed but its fluctuates so much...like one moment it would drop to 60 frames then 144 soon after....its very erratic.
I would like to inform you that The Witcher 1 is not adapted to playing at 144FPS (I recommend a fixed 60FPS), and such drops are standard (not optimized engine), but after using my mod, the drops are limited, in my case on the Ryzen 3600 + GTX1080 + 32GB RAM configuration 3200MHz drops in the Trade Quarter (the most graphically demanding location in the game) were limited to 30FPS, and earlier it could drop even to 23FPS.
Okay thanks for the explanation, if your mod can stabilize a little bit then its worth using but the majority of the time the game runs well at 144 htz, when a lot of trees come into play that's when the frame rate dips.
Unfortunately, as I wrote before, it is a bad engine optimization. Speedtree 4.1 (if I remember correctly) was not so developed yet, so trees take up a lot of resources, modders often skip Speedtree (even probably there is no mod plugin) and load trees into their locations as normal 3D models, then resources are more distributed between GPU and CPU. A long time ago due to poor CPU performance it was a very bad idea, but now with multithreading (but no exaggeration, because older games hate when the CPU is above 6 cores / 12 threads) and amazing performance, this is the best solution.
I just found this tool about 2 weeks ago online looking for constant crashing fix, thanks for uploading it here. I never got any crash since i patched my game.
26 comments
- created a link for the steam folder on the Desktop (needed because the 4GB patcher exe can't see the folder otherwise)
-> command: "ln -s /home/deck/.local/share/Steam/steamapps/common /home/deck/Desktop"
-> That should give you the folder "common" on your Desktop
- Installed "Protontricks" from Discover (Built-in App store)
- run "Protontricks"
- select "The Witcher: Enhanced Edition: 20900"
- press OK
- select "Select the default wineprefix"
- press OK
- select "Run an arbitrary executable"
- press OK
- search for the 4gb_patch.exe and open it
- navigate to your Desktop, open the common folder, navigate to the witcher folder, enter "System" and select witcher.exe
- a success message should come to your screen
That's what worked for me, maybe this could be helpful for someone :)
Witcher1 now runs better than before!
Thank you! :)
from pathlib import Path
import pefile
# 32-bit executable to be modified
file_path = Path.home() / '.local/share/Steam/steamapps/common/The Witcher Enhanced Edition/System/witcher.exe'
pe = pefile.PE(file_path)
# set the LARGEADDRESSAWARE flag
pe.OPTIONAL_HEADER.DllCharacteristics |= 0x0020
# save the modified file
pe.write(file_path)
pe.close()
print(f"Patched file {file_path}")
no more suddenly drops fps
thanks