I’ve noticed that my endless runner game tends to slow down over time on Android, but not iOS. This is interesting to me because my Android device has a quad core processor with 1gb of ram, while my iOS device is only dual core with 512mb of ram.
I went through the normal optimization procedures. My texture memory never climbs above 10mb, and I looked at the lua garbage collection to make sure it wasn’t taking up too much memory. However, the result is always the same. The longer you play on Android, worse the performance gets. You can play on iOS all day long and it never struggles to keep up.
The only difference in my code between the two platforms is that I’m using media.playEventSound for playing sounds on Android since it has less lag.
Are there any other tips of things I should be aware of? I’ve read all the Corona articles about memory leaks and optimization, and I’m following all the best practices. No globals, very small textures, disposing of transitions properly, etc etc.