HOW TO IMPROVE PHYSICS PERFORMANCE ON MOBILE

Discussion and feedback on Construct 2

Post » Wed Jan 22, 2014 8:03 pm

Hello evryone
i want to ask why is construct2 physics performence bad on mobile devices
and if there is a way to improve it .

i have made some test and try to figure out things
i made :
a simple box with physics behaviours + drag behaviours
a simple ground with physics behaviours
a text to show FPS + renderer
export project to NEW XDK and i use the emulate option to see how it performe .
well the fps is at 60 in idle but when i touch the box and move it the frame rate drop to the half at 30~35   
same story when i use the LAN option
i have tried both box2d web and cocon native the asm do not work it show a black screen
ANY IDEA    tnindie2014-01-22 20:05:28
B
7
S
2
Posts: 44
Reputation: 668

Post » Thu Jan 23, 2014 7:31 am

For a overly simplified answer: Physics performance is highly dependent on two things. CPU speed and Javascript implementation. On desktop systems we usually have (ballpark) 10* more powerfull processors and much more optimized Web browsers.

Also, always check performance and compatibility on real mobile devices. The XDK emulator may be somewhat sluggish, and may well be that some new mobile devices are performing better.

Also posting the example (capx) might help fir others to check if there's something really bad at your code.
Need help? Upload .capx file with your question.
B
16
S
4
G
2
Posts: 233
Reputation: 2,560

Post » Thu Jan 23, 2014 11:59 am

Asm.js physics should be considerably faster. If it doesn't work, post a bug report.
Scirra Founder
B
395
S
232
G
88
Posts: 24,368
Reputation: 193,746


Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk and 6 guests