04-11-2011, 08:04 PM
(04-11-2011, 07:50 PM)Szarikow Wrote:(04-03-2011, 03:20 PM)Hykem Wrote: Hmm...
Looks like this game attempts to load audio streams using an archive format (.AFS). This format has been starting to show up a lot lately.
I'm guessing the failed attempts to load those files may be one of the causes for the massive consumption of memory, so I'll see if FFMPEG can parse this format properly and look for the right streams only.
I do understand that the memory leak will get fixed eventually when proper .AFS support is implemented, but would it be possible to make some temporary solution to prevent those leaks?
Could you check this game with the latest revision, r2068? The fact that the async IO thread is now handling the file closing may help some games that repeatedly attempt to open/close the same files, but I suspect this will only get properly fixed after getting the decoder to recognize .AFS files.
As a workaround, I believe there's a tool called adx2wav which may be capable of parsing the sound data from those archive files. But you would still have to replace all the files.