# Extreme Overhead. Desperate for help with Memory!

**URL:** https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476
**Category:** Libraries
**Created:** [July 28, 2021, 5:52pm UTC](https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476 "2021-07-28T17:52:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![CosmicCrowMC](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)
#### Post date: [July 28, 2021, 5:52pm UTC](https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476/1 "2021-07-28T17:52:15Z")

</div>

Things for my game aren’t looking too good right now. I’ve spent all day compressing the assets for my game to try and save on memory. I’ve taken 600 mb of assets and turned them into 300 mb worth. Unfortunately, the memory being used by the game has remained the same before and after: between 2 and 2.5 GB. I’ve read countless articles about memory management, proper loading, garbage collection, and more. The only library I’m using in the game is Minim for sound. What could possibly be causing this?!

---

<div class="post-metadata">

### Author: ![CosmicCrowMC](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)
#### Post date: [July 28, 2021, 7:29pm UTC](https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476/2 "2021-07-28T19:29:49Z")

</div>

There are lots of images used in the game, so I used the .resize() function to try and have less image data loaded at any given time and it seems to have helped. I still hope to clean up the memory further, but this is most certainly a start.

---

<div class="post-metadata">

### Author: ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)
#### Post date: [July 28, 2021, 10:12pm UTC](https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476/3 "2021-07-28T22:12:38Z")

</div>

It’s a bit difficult to give specific advice without some code or at least some understanding of the logic in your code. Different games have different requirements too probably, a little bit more detail would go a long way. I understand that you might want to keep some cards close to the chest, but the topic your addressing is very broad.
