r/androiddev • u/koje1971 • 25d ago
Experience Exchange App Memory Usage Test
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.
13
Upvotes
4
u/estebanfuhrmann 25d 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.
2
u/estebanfuhrmann 25d 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?