Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

any kind of mods
  • Author
  • Message
Offline
User avatar
*master*
Posts: 199
Joined: 13 Dec 2012, 18:08
Location: France

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

Daetarek wrote:For the people running Dance of Death, are you also running a perk overhaul ? I had a lot of issues with this mod up until I realized that I had to turn off the perk flag in the MCM whilst using TTRSO.

@Wojtab

Check back on page 5 of this thread :D I think you may find this has been done, although I do like your version :D
Dance of Death interacts correctly with Skyrim Unleashed and Sperg. I don't have problems so I think Dance of The Death is only part of the problem. Before, when my saves where corrupted (on an instable Skyrim), it's true that removing Dance of The Death could help. But It could be too Skytest Realistic Predators, and many others.

A load order that works for me with nearly everything improved (even at ugrids 11 (not tested above)) :

Code: Select all

Update.esm
Unofficial Skyrim Patch.esp
Dawnguard.esm
Unofficial Dawnguard Patch.esp
HearthFires.esm
Unofficial Hearthfire Patch.esp
Dragonborn.esm
Unofficial Dragonborn Patch.esp
ApachiiHair.esm
ApachiiHairFemales.esm
ApachiiHairMales.esm
Skyrim Project Optimization - Full Version.esm
ClimatesOfTamriel.esm
Lanterns Of Skyrim - All In One - Main.esm
More Interactive Items.ESM
More Interactive Items [Dawnguard].ESM
More Interactive Items [Hearthfire].ESM
NPCs of Dibella - Resources.esm
SPERG.esm
SPIKE.esm
XFLMain.esm
Xvision Children.esm
SLFC.esp
Xvision Children - Complete.esp
Brawl Bugs CE.esp
RelightingSkyrim.esp
Relighting Skyrim - Update.esp
Relighting Skyrim - Dawnguard.esp
Relighting Skyrim - HearthFire.esp
Relighting Skyrim - Dragonborn.esp
Correctif - Skyrim.esp
Correctif - Dawnguard.esp
Correctif - Hearthfire.esp
Correctif - Dragonborn.esp
Chesko_Frostfall.esp
ExpandedSnowSystems-CoT.esp
AOS.esp
Remove Interior Fog V2 - Full Version.esp
FantasySoundtrackProject.esp
StaticMeshImprovementMod.esp
StaticMeshImprovementMod-DragonbornTernFix.esp
StaticMeshImprovementMod-FurnitureChestSnowFix.esp
101Bugs French.esp
Better Towns Textures.esp
Chesko_WearableLantern.esp
EpisodeParallax.esp
Immersive Patrols Merged All.esp
Lanterns Of Skyrim - All In One - Somber ENB.esp
Lost Art of the Blacksmith.esp
skyBirds - Airborne Perching Birds.esp
Skyrim Flora Overhaul.esp
WetandCold.esp
WetandCold - Ashes.esp
Destructible_bottles.esp
Footprints.esp
Footprints - Ash.esp
RaceMenu.esp
RaceMenuPlugin.esp
SkyUI.esp
iHUD.esp
AMB Glass Variants Lore.esp
Cloaks.esp
Cloaks - Dawnguard.esp
1nivWICCloaks.esp
1nivWICSkyCloaksPatch.esp
hothtrooper44_ArmorCompilation.esp
Immersive Weapons.esp
DeadlyDragons.esp
Better City Entrances - All in one.esp
RIC_Dawnstar.esp
Inconsequential NPCs.esp
MorthalFortified.esp
The Paarthurnax Dilemma.esp
Book Covers Skyrim.esp
Differently Ebony.esp
Distant DetailHF.esp
GloriousGrass.esp
SFO - Dragonborn.esp
SFO - Expanded Diversity.esp
Convenient Horses.esp
dD - Enhanced Blood Main.esp
dD-Dragonborn-Dawnguard-EBT Patch.esp
aMidianborn_Skyforge_Weapons.esp
Skyrim unleashed_items.esp
Skyrim unleashed_npc.esp
Skyrim unleashed_crafting.esp
Skyrim unleashed_enchantments.esp
Skyrim unleashed_leveling.esp
Unique Region Names - Dragonborn.esp
Complete Solitude.esp
Drinking Fountains of Skyrim.esp
Falkreath Reborn.esp
RiftenThiefEdition.esp
Riverwood Reborn.esp
WhiterunAlivePiano.esp
AIMP - Antz in my Pantz.esp
DawnofWindhelm.esp
markarth extra.esp
BFT Ships and Carriages - HF.esp
ClimatesOfTamriel-Dawnguard-Patch.esp
ClimatesOfTamriel-Dragonborn-Patch.esp
AOS_CoT 3.1 compatibility patch.esp
Supreme Storms - Cot Version.esp
CoT-WeatherPatch.esp
CoT-WeatherPatch_DB.esp
CoT-WeatherPatch_SupStorms.esp
CoT-WeatherPatch_ESS.esp
Unique Region Names - Dragonborn COT Patch.esp
RealisticNeedsandDiseases.esp
RND_BabettesFeast-Patch.esp
RND_DestructibleBottles-Patch.esp
RND_DrinkingFountains-Patch.esp
SkyRealism - Time and Travel.esp
BFSEffects.esp
DeadlySpellImpacts.esp
Duel - Combat Realism.esp
Dual Wield Parrying_SKSE.esp
DragonCombatOverhaulDragonborn.esp
Locational Damage.esp
The Dance of Death - Ultimate Edition.esp
SPERG.esp
SPERG-DG.esp
SPERG-DB.esp
Cazy Hairs-by zzjay.esp
Fh hairs-by zzjay.esp
RenHair.esp
XFLDialogue.esp
XFLPlugins.esp
SPERG Extensible Follower Framework.esp
NPC_Overhaul_1_3_.esp
Follower_Addon_V2_.esp
NPCs of Dibella - Females - USKP.esp
dD - Realistic Ragdoll Force - Realistic.esp
getSnowy.esp
RealisticWaterTwo.esp
RealisticWaterTwo - Legendary.esp
Xvision Children - USKP.esp
Xvision Children - IncNPCs.esp
AOS_WetandCold Patch.esp
Unique Region Names.esp
Bashed Patch, 0.esp
You can quietly add ENB and textures packs (I used compressed 1024*1024 textures for objects, 512*512 for small objects and 2048*2048 with Parallax for landcapes). Packs by Cabal (AMidianBorn ...) or Kobayashi (clothes) are great (very beautiful while being optimized). Book Covers Skyrim is cool for books and paper. For hair, Natural Apachii Retexture and Superior Lore Hair are good. I am using of course UNP body and Better Male Body and Faces. Using everything, I hit my 2gb of VRAM pic anyway.

I replaced the High Res Texture Pack with this : http://www.nexusmods.com/skyrim/mods/9957/?

I cleaned Skyrim.esm, Dawnguard.esm, HeathFire.esm and DragonBorn.esm too.
Last edited by KuroTenshi on 05 Feb 2014, 15:31, edited 4 times in total.
_________________
Asus P8Z77-V, G.Skill TridentX 2x4go PC3-19200 CL9, Intel Core i5-3570K (3.4 GHz), Gigabyte Geforce GTX 670 WindForce 3x OC(335.23), Samsung SSD 840 Pro 128go+500Go 7200RPM SATA III, Auzentech X-FI Forte 7.1, Windows 8.1 Pro x64, The Grim and Somber ENB

Offline
Posts: 3
Joined: 28 Jan 2014, 18:59

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

Daetarek wrote:For the people running Dance of Death, are you also running a perk overhaul ? I had a lot of issues with this mod up until I realized that I had to turn off the perk flag in the MCM whilst using TTRSO.

@Wojtab

Check back on page 5 of this thread :D I think you may find this has been done, although I do like your version :D
Thanks for good opinion, your version from 5th page is similar, but it has one mistake there:

Code: Select all

SafeWrite32(0x00687e87+2, MemBlock1+256);
and it should be:

Code: Select all

SafeWrite32(0x00687e87+2, MemBlock1+MemBlock2*1048576);
You are assuming that MemBlock2 is always equal to 256MB. If someone set eg. block1 to 512MB and block2 to 1024MB bad things could happen.

Offline
Posts: 29
Joined: 18 Jan 2014, 04:27

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

@KuroTenshi

I was unaware they were compatible I just know I had to tick off a flag in my MCM for dance of death to resolve some small issues, personally I have no problem with it.

According to my MO i have 370 mods active of which 240 are esp's and with the SKSE patch I have no problems, I have however been encountering some issues with the SSME patch so I will be switching away from that.

Offline
Posts: 29
Joined: 18 Jan 2014, 04:27

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

Wojtab wrote:
Daetarek wrote:For the people running Dance of Death, are you also running a perk overhaul ? I had a lot of issues with this mod up until I realized that I had to turn off the perk flag in the MCM whilst using TTRSO.

@Wojtab

Check back on page 5 of this thread :D I think you may find this has been done, although I do like your version :D
Thanks for good opinion, your version from 5th page is similar, but it has one mistake there:

Code: Select all

SafeWrite32(0x00687e87+2, MemBlock1+256);
and it should be:

Code: Select all

SafeWrite32(0x00687e87+2, MemBlock1+MemBlock2*1048576);
You are assuming that MemBlock2 is always equal to 256MB. If someone set eg. block1 to 512MB and block2 to 1024MB bad things could happen.
Actually I am not sure you are correct, that code was provided by Sheson (check page 6), the first block allocation according to code by default is already 512Mb, in hex 0x200, so my code defaults the first block to 256 and adds the hidden 256 that a user would not normally see. The two blocks should be completely independent, in your code you just showed changing one will change both, this is not a good idea.

For example in my code i can set 512/1024 split, if i set that in yours the first block would try and assign 1.5gb

EDIT: Ahhh i see what has happened, you may have read my code as being one variable for two memory blocks, its actually two independent memory blocks, Memblock1 and Memblock2, they are configurable as MB in the ini file and the code adjusts them to the correct values, trust me they work and have worked for many many people for over a week.

I also point you to ...
Sheson wrote: How it works

When tesv.exe is started it allocates two 256MB blocks of memory. When the first block gets full, the engine will allocate more blocks. This can cause the known troubles. Thankfully, by telling the engine to request a bigger block from the start it magically makes use of it without any further ado. This isn't the case with the second block. Thankfully again, the second block does not fill up as quickly and once it is full the engine does not trip over itself when allocating more blocks.
In your code you say the default first block is 512Mb, this is actually not true it is 256Mb, as shown in the quote above, there is a hidden 256Mb a user would not usually see, you can check your own or any of the many VMMaps throughout this thread.

Offline
Posts: 3
Joined: 28 Jan 2014, 18:59

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

I see where I made a mistake, I'm not really experienced in memory blocks(working on them for the first time) and I thought that second block is taken from a first block. I tested it using only 256MB on second block, and there is 256MB taken from the first, so I assumed wrongly. Oh well, it has made mine skyrim better, so I accomplished the goal.

Offline
Posts: 29
Joined: 18 Jan 2014, 04:27

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

Wojtab wrote:I see where I made a mistake, I'm not really experienced in memory blocks(working on them for the first time) and I thought that second block is taken from a first block. I tested it using only 256MB on second block, and there is 256MB taken from the first, so I assumed wrongly. Oh well, it has made mine skyrim better, so I accomplished the goal.
Mate, I had issues with it too the whole things is pretty tricky to wrap the old head around initially, if you look at my post on 5, you will see I made a stack of edits on my post to get it right, the original was a mess lol, thankfully a lot of cool people here who helped out and pointed me in the right direction. I am glad your game is better :D

Offline
User avatar
*master*
Posts: 229
Joined: 21 Feb 2013, 03:21
Location: Los Angeles, CA

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

Hi,
With this memory patch I am able to run the enbhost.exe process all the way up to 4GB. At that point, TESV.exe memory starts increasing rapidly until I finally get a CTD. Way back in the ENB 0.200 thread Boris said this:
Oyama
VadersApp
Enbhost.exe is process which mod start when ReduceSystemMemoryUsage=true, it is garbage collector for memory. In future i probably make several copies of the same process to cover greater memory range. As i don't have hardware for testing 64 bit, i did this as 32 bit application, so only 4 gb memory available for each enbhost.exe running. This means that all unused memory allocated in enbhost.exe and when required, it send back to game. Skyrim 4 gb + enbhost 4 gb.
Boris, would it be possible for you to implement a second enbhost.exe with an addition 4GB?
Thanks!
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17557
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

number6
Are you sure it's not the bug in the scripts or something else which leads to memory leaks? Because nobody yet had this issue before, even when EnableCompression=false. Of course i can do any number of enbhost.exe processes, but first i want to be sure it's not the bug.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7

Offline
User avatar
*master*
Posts: 229
Joined: 21 Feb 2013, 03:21
Location: Los Angeles, CA

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

I can't be sure if it's a memory leak, but I don't think so. enbhost.exe stays under 4GB unless I start increasing ugridstoload past 13 :) Sound high, but with this patch even 13 is stable. When ugridstoload=15 then enbhost.exe uses a max of ~4GB at which point TESV.exe starts to use more memory rapidly. If I don't go over 13 then TESV.exe stays around 1.5GB and enbhost.exe is around 3.7GB.

I think before this patch, back when 0.200 was out, nobody could push their setup even close to this so the limit could never be reached. But now things are different :D.
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7

Offline
User avatar
Posts: 42
Joined: 19 Jan 2014, 14:14
Location: Hanoi, Vietnam

Re: Skyrim Memory Patch - fixing ILS, uGrids CTD, freezes

@Daetarek

What problems have you had with using SSME?

Since I didn't see any repsponses, I'll ask about the differences in SSME again (sorry for a little spam):

Both sheson's original (skse_steam_loader.dll) method and Queued's (d3dx9_42.dll) variant both use a dynamic library to inject the modified code to patch TESV.exe. So, I have assumed that if I see that the mem block 1 value has changed as expected, then there is otherwise no difference in how Skyrim will behave after that, regardless of which method is used.

I came to that conclusion because as far as I know, both methods make no further changes to or interact with TESV.exe after the three lines code are patched.

Can anyone confirm this or otherwise explain how they may effect TESV.exe differently?

@sheson

Thanks for the advice on hunting down mods to solve my remaining CTD issues. You're preaching to choir on the recommendation of Mod Organizer - I don't know what I'd do without it. I try very hard to only use texture replacement / plugin-based with a proven track record, but yeah, maybe there's something in there - though the vast majority are same as SR:LE (but lighter on the scripted mods end), and so many people are reporting great success using that lineup of mods/textures.

Anyhow, as I recommended to Nearox I'm going to cut my whole mod list out of the equation completely and just run 100% vanilla Skyrim tests, straight from Steam, with only ENBoost & SSME (unless I hear clear confirmation of reasons not to use SSME, in which case I'll have to do vanilla + SKSE).
_________________
EVGA GTX 760 4GB | i5-4590 Quad 3.3Ghz | ASRock Z87E-ITX | 16GB Crucial DDR3-1600 | 240GB SSD + 3TB HDD | Win7 x64
Post Reply