MaKiPL / OpenVIII-monogame

Open source Final Fantasy VIII engine implementation in C# working on Windows and Linux (Android and iOS planned too!) [Monogame]
MIT License
642 stars 59 forks source link

FFmpeg Custom Class Ffcc has some memory leaks #21

Closed Sebanisu closed 5 years ago

Sebanisu commented 5 years ago

If you cycle threw videos and watch memory usage in Visual Studio you can see the spikes going up when it loads something new. And it not come back down all the way. A new instance is created every time a new video is played. So the old one is leaving something behind.

Sebanisu commented 5 years ago

I think I fixed a bunch of these. Might be some small ones remaining.

One of the big ones was the MemoryStream I used for audio didn't seem get released from memory. The new way I do audio seems to be much better on memory. I think I'll close this for now.