[media]https://www.youtube.com/watch?v=Hepicth3KMo[/media]
Link to YouTube video (does anyone know how to embed a YouTube video in Corona forums?) – fixed 8/6/17! Thanks @roaminggamer
When I first started working with Corona SDK, several experienced developers told me to limit my physics bodies to under 100 (even under 50). Many experiments, tweaks, and collision filters later, I’ve been able to run 2,000+ physics bodies at 25 - 30 FPS (mostly depending how busy the artificial intelligence module is with all those little guys making decisions).
*Note - this video is from an iPad mini. My physics experiments work perfectly on iOS devices, however, I haven’t had luck with Android devices as they still crash after 50-100 physics bodies (even the good quality Samsungs). My Dynamic Shader also experiences a slowdown on Android devices - although not as noticeable as the physics crashes.
I’m looking for solutions for the android problems so please share any hunches you have. I got the idea somewhere that I might have to use a native Java physics engine but I’m hoping for a less severe diagnosis.
Thanks,
Jonathan