Page 1 of 2

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

Posted: Tue Apr 25, 2017 12:51 am
by TheHappyJammer
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.

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

Posted: Thu Apr 27, 2017 6:29 pm
by PootWizard
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).

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

Posted: Fri Apr 28, 2017 3:51 pm
by TheHappyJammer
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

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

Posted: Sat Apr 29, 2017 6:22 am
by zornor90
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

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

Posted: Sat Apr 29, 2017 6:58 am
by TheHappyJammer
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

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

Posted: Mon May 22, 2017 3:04 am
by D-6264
Thank you very much ! it work really nice, i only get a MAV 1hour and 30 minutes after loading my game

Before it was after 5 or 10 minutes

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

Posted: Mon May 22, 2017 12:49 pm
by TheHappyJammer
D-6264 wrote:Thank you very much ! it work really nice, i only get a MAV 1hour and 30 minutes after loading my game

Before it was after 5 or 10 minutes
You're welcome m8 :D

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

Posted: Sun Jul 09, 2017 12:40 pm
by ErrorUnknownGT
I can confirm that this works, now that the game has access to more memory, I get 0 memory access violations, no more spazzy textures which makes the game unplayable either. Thank you.

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

Posted: Sat Aug 19, 2017 10:44 pm
by O5_Janessa
I just installed it. I'll see if this truly does work.

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

Posted: Thu Feb 15, 2018 1:34 am
by roosterani
This seems to have broken my SCBCB launcher...
I used it on the .exe file and the game never launches.