Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

I was able to make a pretty significant improvement to the game’s resource usage. Before the optimization pass, the game was using a little over 1 GB of RAM during runtime, and after going through the code and making the optimizations, it is now using a little over 200 MB, depending on the quality preset being used. That’s roughly an 80% reduction in RAM usage. One of the bigger improvements came from removing unnecessary heap allocations in the UI system. I found 46 recurring immediate-mode button construction sites that were causing unnecessary allocations, so I converted UIButton from a reference type to a value type to reduce memory usage and garbage generation. I did all of the coding and optimization myself, and none of these changes were meant to change the simulation or add gameplay. This was strictly to make the game use its resources more efficiently.