Just created my first jbox2d android project and it runs fine, but I was wondering if the ANDEngine implementation of box2d was any more efficient. Basically, what are the professionals' thoughts on developing with ANDEngine box2d extension versus jbox2d for android apps?
ANDEngine or not?
JavaI'm pretty sure ANDEngine uses JNI to like to a natively compiled Box2D version. So the engine implementation itself will perform better, but the speed of the JNI bridge is always questionable, not sure how big of a hit that is on Android. But I'm willing to bet it's faster than JBox2D on Android, if only because it's more up-to-date (jbox2d still uses an unbalanced dynamic tree for broadphase, while I think Box2D now uses a B+ tree)
Don't use ANDEngine, go for LibGDX, it also uses c++ Box2D through JNI.
Original thread: https://box2d.org/forum/viewtopic.php?t=7923