Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

3.5 Memory Issues. ContentManager.Unload() not working properly?

$
0
0

@gap9269 wrote:

I finally made the switch to 3.5.1 a few days ago (I've been using 3.4 for a long time) and all seemed well until I started noticing performance issues and took a look at my Resource Monitor. Nearly across the board my game's memory usage has doubled from what it was, but that isn't the oddest part.

When I exit the game to the main menu I unload all content, which would normally drop the memory usage quite a bit because I only have a single menu loaded as opposed to a map, enemies, characters, etc. Instead I see no change in memory usage. What's worse is that starting the game again nearly doubles my memory usage. Repeating this step will continuously increase my memory usage by roughly the same amount each time, as if it's loading all of the content again, but never actually freeing up the memory when I call Content.Unload();

To test this further I loaded my game up and started running through different maps. Each map loads all necessary content on entering and unloads it all on exit. Every time I change maps it only increases memory usage. Content.Unload() doesn't seem to do reduce it.

Am I missing something obvious here, or is there a bug? The only changes I made were switching from VS2010 -> VS2015, .Net 4.0 -> .Net 4.5 and Monogame 3.4 -> Monogame 3.5.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles