I have some functionallity for monitoring memory usage by our sound system that pretty much wraps up Memory_GetStats and EVENT_SYSTEMINFO/_WAVEBANKINFO. My problem is that if I compare the current_alloc from Memory_GetStats with the memory added up by wavebanks (samples and streams), events, instances and dsps I get a diff of about 33% that I can’t track down its usage. An example that I have running says that the current alloc is 24958 kb and the memory used by sampledata is 17177 kb. The rest of the posts says 0 kb. What am I missing here. What allocates the remaining memory?
- Frohagen asked 11 years ago
Is there anyway to approximate the memusage for now? I mean for our title we have a mempool of 30 megs (ps3) and it’s full after having loaded fsb:s of about 17 megs. I have noticed that FMOD itself allocs about 4 megs and that our fev:s take up a total of 1.5 megs but the rest is a black hole to me. I do understand that the event don’t come for free but it feels a little weird that they should alloc > 7.5 megs so what could I possibly be missing? How does FMOD handle streambuffers? Does it reserve memory for these or are they allocated on the fly? Streambuffers would explain a tiny bit of the mystery but not all.
I’m still getting 0kb for events, instances and dsps (using 4.08.05) and I’m not really able squeeze al my content into the block of memory I have reserved. At the moment I am running with mempool of 32 megs but only 23 are used even though FMOD says the memory is full. Worth mentioning is that this is during startup so no fragmentation should have meesed up the pool at this stage.
Please login first to submit.