-
Notifications
You must be signed in to change notification settings - Fork 0
Set Memory Pool Info
When you create a mod folder with 'VisualMunge', the mission files that are generated contain 'canned' SetMemoryPool
calls. In many cases they may be fine to leave as they are. But if you have memory concerns you may want to 'tune/optimize' the memory pool allocations.
Below are all the SetMemoryPoolSize()
calls referenced in the SWBFII mission lua files (that shipped with the modtools). We don't know exactly what all these are; but many memory pool allocations can be optimized by 'counting' the allocations in the different world files (or in units). The unknowns are marked with '??'.
If you know what any of the 'unknowns (??)' are, please edit this page annotating what they are and how to count them.
'How to Count' == 'Best Guess as how to count'
MemoryPool | How to count | occurs in #files |
---|---|---|
SetMemoryPoolSize("AcklayData",6) | # Of Acklay | 1 |
SetMemoryPoolSize("ActiveRegion",12) | ?? | 8 |
SetMemoryPoolSize("Aimer",wpnCnt) | 1 per dude | 126 |
SetMemoryPoolSize("AmmoCounter",wpnCnt) | 1 per dude | 103 |
SetMemoryPoolSize("Asteroid",100) | ?? | 11 |
SetMemoryPoolSize("BaseHint",100) | 'Hint', in .hnt files | 105 |
SetMemoryPoolSize("ClothData",19) | ?? | 26 |
SetMemoryPoolSize("Combo",64) | ?? | 28 |
SetMemoryPoolSize("Combo::Attack",128) | ?? | 29 |
SetMemoryPoolSize("Combo::Condition",500) | ?? | 31 |
SetMemoryPoolSize("Combo::DamageSample",950) | ?? | 38 |
SetMemoryPoolSize("Combo::Deflect",88) | ?? | 29 |
SetMemoryPoolSize("Combo::State",75) | ?? | 35 |
SetMemoryPoolSize("Combo::Transition",100) | ?? | 33 |
SetMemoryPoolSize("CommandFlyer",4) | trooptrans, gunship.. | 11 |
SetMemoryPoolSize("CommandWalker",1) | AT-AT,AT-TE,... | 21 |
SetMemoryPoolSize("ConnectivityGraphFollower",unitCnt) | ?? | 21 |
SetMemoryPoolSize("EnergyBar",wpnCnt) | 1 per dude | 101 |
SetMemoryPoolSize("EntityCloth",17) | 1 per cloth dude | 84 |
SetMemoryPoolSize("EntityDefenseGridTurret",0) | ?? | 10 |
SetMemoryPoolSize("EntityDroid",8) | ?? | 1 |
SetMemoryPoolSize("EntityDroideka",0) | is this necessary? | 22 |
SetMemoryPoolSize("EntityFlyer",10) | Jetpacks, _fly_ | 140 |
SetMemoryPoolSize("EntityHover",10) | _hover_, +hover dudes | 74 |
SetMemoryPoolSize("EntityLight",100) | 'Light' in .lgt files | 19 |
SetMemoryPoolSize("EntityMine",16) | is this really necessary? | 13 |
SetMemoryPoolSize("EntityPortableTurret",20) | is this really necessary? | 8 |
SetMemoryPoolSize("EntityRemoteTerminal",12) | Turret Consoles (Like in space) | 12 |
SetMemoryPoolSize("EntitySoldier",guyCnt) | ?? | 4 |
SetMemoryPoolSize("EntitySoundStatic",10) | 'Sound' in .lyr .world files | 100 |
SetMemoryPoolSize("EntitySoundStream",10) | 'SoundStream' in .rgn files | 93 |
SetMemoryPoolSize("EntityWalker",3) | _walk_ | 20 |
SetMemoryPoolSize("FLEffectObject::OffsetMatrix",100) | ?? | 36 |
SetMemoryPoolSize("FlagItem",2) | CTF mode: 1,2 | 69 |
SetMemoryPoolSize("LightFlash",25) | ?? | 1 |
SetMemoryPoolSize("MountedTurret",10) | 'mounted' on vehicles or stationary? | 136 |
SetMemoryPoolSize("Music",33) | ?? | 149 |
SetMemoryPoolSize("Navigator",unitCnt) | ?? | 97 |
SetMemoryPoolSize("Obstacle",100) | 'Barrier' in .bar files | 136 |
SetMemoryPoolSize("Ordnance",80) | ?? | 29 |
SetMemoryPoolSize("OrdnanceTowCable",3) | #OfSnowSpeeders | 9 |
SetMemoryPoolSize("ParticleEmitter",512) | ?? | 7 |
SetMemoryPoolSize("ParticleEmitterInfoData",512) | ?? | 7 |
SetMemoryPoolSize("ParticleEmitterObject",400) | ?? | 1 |
SetMemoryPoolSize("PassengerSlot",0) | ??,(always set to 0) | 7 |
SetMemoryPoolSize("PathFollower",unitCnt) | ?? | 84 |
SetMemoryPoolSize("PathNode",100) | 'Node', in .pth files | 106 |
SetMemoryPoolSize("PathRequest",unitCnt) | ?? | 1 |
SetMemoryPoolSize("RedOmniLight",130) | ODF omnilights/flashing lights/lens flare | 12 |
SetMemoryPoolSize("ShieldEffect",4) | ?? | 41 |
SetMemoryPoolSize("SoundSpaceRegion",10) | 'SoundSpace', in .rgn files | 50 |
SetMemoryPoolSize("TentacleSimulator",10) | ?? | 57 |
SetMemoryPoolSize("Timer",10) | #Timers | 28 |
SetMemoryPoolSize("TreeGridStack",100) | ?? | 115 |
SetMemoryPoolSize("UnitAgent",unitCnt) | 1 per dude | 91 |
SetMemoryPoolSize("UnitController",unitCnt) | 1 per dude | 115 |
SetMemoryPoolSize("Weapon",wpnCnt) | 1 per dude | 135 |
- Check the Modtools debugger exe log file for suggestions on memory pool sizes.
- Memory pool Video Tutorial