Gideros Box2d performance issue

This project - cutted from real game to localize tiny place. Demo project has 100 bodies that moving in one direction. That bodies has collision filter that cancel collisions between them. And we have only 45 FPS on device with this simple case. (It is important that bodieas arent sleeping, they always walking - patroling unit)

Can someone help me with answer:

1) If you have same fps drop in this project on your device ?2) On what device did you tested (if true) ?3) Do you know how to fix this issue ?

You could try to use liquidfun plugin instead of box2d (require 'liquidfun'): box2d is liquidfun 1.0.0 while liquidfun is liquidfun 1.1.0. maybe the code is more efficient in 1.1.0. Otherwise it is true that box2d consumes a lot of CPU.

You could try to use liquidfun plugin instead of box2d (require 'liquidfun'): box2d is liquidfun 1.0.0 while liquidfun is liquidfun 1.1.0. maybe the code is more efficient in 1.1.0. Otherwise it is true that box2d consumes a lot of CPU.

require command at main.lua is only that thing I should to use, so simple ?

It's true that Box2D can use a lot of CPU, but there are some important things to note which can help increase efficiency:

1. Creating bodies is CPU intensive. It's good practice to pool all bodies that will be created/removed frequently.2. Dynamic bodies consume most resources (because they use all physics properties). Using kinetic bodies instead of dynamic makes a huge difference in performance.3. If you have to use dynamic bodies, make sure you disable them when possible, for example when they're outside the visible screen area. This can be done by changing the collision filter or simply by body:setActive( false)