Memory Leak?

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
Horst
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1927
Joined: Mon Feb 18, 2013 1:22 pm

Memory Leak?

Post by Horst »

After a long session, I've noticed that the OoB.exe ate up 7300M RAM when I tried to quit. I can't remember that OoB used that large amount of RAM in the past.
When I load the Sandstorm scenario "Alam el Halfa" during the deployment phase with most of my units placed, the game already uses up 4488M RAM. Now what worries me: everytime I redeploy the same tank unit, the RAM increases by about 2-5M. Looks like the game can't properly release memory anymore. The game still seem to flush memory when loading a new scenario though. I have never bothered yet to observe the RAM usage during scenarios before. The 7300M event happened after the Herkules scenario. Reloading the last save "only" shows 5000M after wiping all AI units out.
Setting the game to the lowest gfx quality doesn't really make a difference.
Horst
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1927
Joined: Mon Feb 18, 2013 1:22 pm

Re: Memory Leak?

Post by Horst »

Looks like I found the memory-bomber:
Vanilla, U.S. Pacific, Operation Downfall: 873M RAM usage
Modified, replacing the atlas.tga file (terrain overlay like transport icons) of 4M size with a modified one of 548K: 4879M RAM!!!

@Terminator: this is your changed file with the better train-transport overlay. No idea why the game hates your file so much, but after resaving it to 32-bit tga of 4M size like the vanilla one, my game only shows 870-1108M with all my other mod files. Dunno why the RAM often varies that much. Whatever, that's a reasonable RAM usage now.
Heh, looks like the tiny atlas.tga file was loaded like 8000 times into the RAM! :lol:
Attachments
atlas.7z
(90.68 KiB) Downloaded 62 times
LNDavoust
Staff Sergeant - StuG IIIF
Staff Sergeant - StuG IIIF
Posts: 258
Joined: Fri Apr 13, 2018 12:24 am

Re: Memory Leak?

Post by LNDavoust »

5 GB of RAM for a single file... :shock:

Ok, this bug it's both hilarious and terryfing at the same time...
bru888
Order of Battle Moderator
Order of Battle Moderator
Posts: 6214
Joined: Sun Jan 10, 2016 5:39 pm
Location: United States

Re: Memory Leak?

Post by bru888 »

To be clear, if I am reading him properly, Horst is talking about a modification that Terminator made to a game file. So this is not a bug in the unmodified game.
- Bru
Post Reply

Return to “Order of Battle : World War II - Tech Support”