We have:
1) Demo project that attached here
2) Device ZTE Nubia z17 8core 6Gb memory
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 ?
Dropbox link, if someone has problems to download
Comments
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
can instead of box2d use bump?
https://github.com/kikito/bump.lua
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
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)
Likes: snooks, antix, vitalitymobile