[1.3.9 Or Earlier] "4GB Patch": A Fix For Low FPS, Lag Spikes, Flickering Textures and some MAVs

#1
UPDATE: As of v1.3.10 of SCP - Containment Breach, the main game will be implemented with the 4GB Patch/LAA Enabled and thus this tool will no longer be needed for this version of the game and beyond. This tool however will still be useful for those who are utilizing an older version of SCP - Containment Breach or an SCP - Containment Breach Mod.

The "4GB Patch" Tool allows the limit of virtual memory to go up from the default 2GBs to 4GBs in 32bit applications through allowing "Large Address Aware" within the executable (See "4-Gigabyte Tuning" on pcgamingwiki for explanation: https://pcgamingwiki.com/wiki/Microsoft ... yte_Tuning)

4GB Patch: http://www.ntcore.com/4gb_patch.php
Direct Download: http://www.ntcore.com/files/4gb_patch.zip
Image
If you desire the same results on your executable but with more options to play with, use "Large Address Aware Enabler" by FordGT90Concept that basically does the same thing as 4GB Patch but with a more interactable interface https://www.techpowerup.com/forums/thre ... re.112556/
Image
I tried this on my SCP executable on and I have not had issues with lag spikes and FPS staying at a constant rate rather than dropping to single digits which is what I had before. I have been getting no lag-related MAVs and "failure to load" MAVs are now harder for me to encounter.

I encourage anyone else to try this tool out for themselves and I hope this is implemented in the next possible update of SCP- CB. :D

EDIT 2: Did some tests on mods, this Patch tool drastically improved the performance for
- SCP: CB Nine Tailed Fox Mod https://undertowgames.com/forum/viewtop ... =11&t=4358
- Project Resurrection https://undertowgames.com/forum/viewtop ... =11&t=5445
- SCP: CB Unity Edition (32 Bit Version) https://undertowgames.com/forum/viewtop ... f=3&t=5553
- SCP: CB 087-B Mod viewtopic.php?f=11&t=4944

EDIT: From the website
I originally wrote this tool for a friend of mine who needed it. This very little tool patches x86 executables in order to let them have 4GB (instead of only 2) of virtual memory on x64 platforms. This tool comes very handy for applications which need a great amount of virtual memory like games, 3D renderization, multimedia etc. To gain these 2GB, you just have to use this tool to patch the executable (*.exe file) of the software you want to have these additional GBs of virtual memory. It can be used by clicking on it and choosing the file or through command line (e.g.: "4gb_patch file.exe"). It automatically creates a backup copy of the original executable.

Why things are this way on x64 is easy to explain. On x86 applications have 2GB of virtual memory out of 4GB (the other 2GB are reserved for the system). On x64 these two other GB can now be accessed by 32bit applications. In order to achieve this, a flag has to be set in the file's internal format. This is, of course, very easy for insiders who do it every day with the CFF Explorer. This tool was written because not everybody is an insider, and most probably a lot of people don't even know that this can be achieved. Even I wouldn't have written this tool if someone didn't explicitly ask me to.
Last edited by TheHappyJammer on Sun Jul 29, 2018 11:51 pm, edited 23 times in total.
[1.2.3] SCP Containment Breach 087-B Mod:
viewtopic.php?f=11&t=4944
[1.3.11] Field Of View (FOV) Mod:
https://undertowgames.com/forum/viewtop ... f=5&t=8433

Re: A Potential/Promising Fix to Low FPS, Lag Spikes, Flickering Textures and some MAVs

#3
PootWizard wrote:Looks promising alright...

Ill take a shot at it and see how it goes for me

EDIT: You sir, have done gods work, I had no problems what so ever (besides the FPS drop, buts thats my side).
Hopefully more people will use this as the devs find a better way to manage the memory in the game. I'm glad this helped you! :D
[1.2.3] SCP Containment Breach 087-B Mod:
viewtopic.php?f=11&t=4944
[1.3.11] Field Of View (FOV) Mod:
https://undertowgames.com/forum/viewtop ... f=5&t=8433

Re: A Potential/Promising Fix to Low FPS, Lag Spikes, Flickering Textures and some MAVs

#4
TheHappyJammer wrote: - SCP: CB Unity Edition https://undertowgames.com/forum/viewtop ... f=3&t=5553
Are you talking about the x86 edition? The x64 is 64-bit and can use as much memory as personal computers can hold nowadays

This is pretty cool regardless, I'll have to try it out and see how it improves the main game's performance and stability
Upgrading Containment Breach to Unity in 2018

Website | Forum | Patreon | Discord

Re: A Potential/Promising Fix to Low FPS, Lag Spikes, Flickering Textures and some MAVs

#5
zornor90 wrote:
TheHappyJammer wrote: - SCP: CB Unity Edition https://undertowgames.com/forum/viewtop ... f=3&t=5553
Are you talking about the x86 edition? The x64 is 64-bit and can use as much memory as personal computers can hold nowadays

This is pretty cool regardless, I'll have to try it out and see how it improves the main game's performance and stability
The x86 edition had a much better performance with the patch.
The x64 edition is a more subtle difference; with the patch I can run the highest settings at constant smooth FPS
[1.2.3] SCP Containment Breach 087-B Mod:
viewtopic.php?f=11&t=4944
[1.3.11] Field Of View (FOV) Mod:
https://undertowgames.com/forum/viewtop ... f=5&t=8433