[Help] Memory fix for bf2editor

Making or wanting help making your own asset? Check in here
Post Reply
TeRR0R
Posts: 451
Joined: 2007-10-20 10:33

[Help] Memory fix for bf2editor

Post by TeRR0R »

Out of curiosity i patched my bf2editor executable with the memory fix we used for bf2.exe under vista/7 64bit.
While working with it, the editor utilized up to 2,6GB RAM under 7/64.
Is the original editor limited to 2GB at all?
If the answer is yes, this memory patch seems to have an effect.
User avatar
bad_nade
Support Technician
Posts: 1498
Joined: 2008-04-06 18:26
Location: Finland

Re: [Help] Memory fix for bf2editor

Post by bad_nade »

All 32-bit Windows apps are limited to 2 gigabytes of memory per default.

Mark's Blog : Pushing the Limits of Windows: Virtual Memory


Edit:
I checked the original bf2editor.exe and it's not marked large address aware:

Code: Select all

FILE HEADER VALUES
             14C machine (x86)
               4 number of sections
        4468A3B4 time date stamp Mon May 15 18:52:20 2006
               0 file pointer to symbol table
               0 number of symbols
              E0 size of optional header
             10F characteristics
                   Relocations stripped
                   Executable
                   Line numbers stripped
                   Symbols stripped
                   32 bit word machine
whereas patched version is:

Code: Select all

FILE HEADER VALUES
             14C machine (x86)
               4 number of sections
        4468A3B4 time date stamp Mon May 15 18:52:20 2006
               0 file pointer to symbol table
               0 number of symbols
              E0 size of optional header
             12F characteristics
                   Relocations stripped
                   Executable
                   Line numbers stripped
                   Symbols stripped
                   [color=Red]Application can handle large (>2GB) addresses[/color]
                   32 bit word machine
Last edited by bad_nade on 2010-01-03 12:22, edited 2 times in total.
Post Reply

Return to “PR:BF2 Community Modding”