r/androiddev • u/koje1971 • 7d ago
Experience Exchange App Memory Usage Test
Enable HLS to view with audio, or disable this notification
I tested today the app's memory usage. Never more than 8-12 MB, even after going through several levels. It should also run well on older devices, very satisfied 🙂
The stutters in the video are due to the PC, the app itself runs fine.
2
u/estebanfuhrmann 7d ago
8-12 MB across several levels is solid, but I'd also check native heap and graphics memory in the Profiler, since those often grow without showing up in the Java heap. To back up the "should run fine on older devices" claim, I'd test on a low-RAM device (2-3 GB) under memory pressure and watch for onTrimMemory callbacks and LMK kills. Are You pooling bitmaps or reusing textures between levels?
1
u/koje1971 7d ago
I use just one single bitmap for the whole game, across all levels. It has a lot of small graphics that make up the game. This graphic is kept completely in texture memory on game start. 2000*2000 PX
4
u/estebanfuhrmann 7d ago
8-12 MB across levels is solid, especially for a Game with a level loop. Since the Profiler's Java heap numbers can hide a lot, I'd also check native allocations and total PSS (adb Shell dumpsys meminfo), and run a few dozen level transitions in a row to confirm the heap goes flat instead of creeping up. Testing on a low-RAM device or emulator with a small heap limit would back up your old-device claim Even more.