Hi ,all
Our game has some problems with memory, there are two many third party library in our game . most of them are closed source, I have some trouble with profilering it . I am newbie for this ,I hope I can have some insight here.
Situation:
After running a long time , allocing memory will be failed.
Analyzing:
Reason 1: There may be some memory leak when game running.
Reason 2: After a long time running , there may be memory fragmentation in the memory space!
Question:
For reason 1, I tried to hook heapalloc and heapfree , then output some log for analyzing , but if I hooked these api ,the game run very slowly, which will lead to net error happenning , the test failed; I also try umdh in windows debugging tools, it has help me find some leak.
Is there any other way help me to find a leak in the third party library???
For reason 2, I use vmmap to see the unused space. Is there some other way to find the code which caused these memeory fragment?
Is there any suggestions for memory manangement with so many third party library in a game?