# Matter.js + Cordova

**URL:** <https://phaser.discourse.group/t/matter-js-cordova/3293>\
**Category:** Phaser 3\
**Created:** [July 30, 2019, 7:33pm UTC](https://phaser.discourse.group/t/matter-js-cordova/3293 "2019-07-30T19:33:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Six-Winged](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Six-Winged](https://phaser.discourse.group/u/Six-Winged)\
**Post date:** [July 30, 2019, 7:33pm UTC](https://phaser.discourse.group/t/matter-js-cordova/3293/1 "2019-07-30T19:33:32Z")

</div>

Hi everybody! I am using Phaser 3 in development mobile game, and the key of gameplay - 2D physics, so after viewing Matter.js mobile demo (I mean this one [http://brm.io/matter-js-mobile/](http://brm.io/matter-js-mobile/)) I decided that it will be a good solution for my purposes, but when I prepared demo and installed it on iPad mini 4 (using Cordova) - I found out that even just 40 circles (without any sprites, just wireframes) decrease fps to 20 and even more, and this is pad, not even phone… playing with positionIterations, velocityIterations, constraintIterations and enableSleeping don’t have any effect. in the meantime on MacBook it works fine, so it’s just mobile version problem. maybe anybody have any solution for this case? thx!

---

<div class="post-metadata">

**Author:** ![tony](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tony](https://phaser.discourse.group/u/tony)\
**Post date:** [August 1, 2019, 8:02am UTC](https://phaser.discourse.group/t/matter-js-cordova/3293/2 "2019-08-01T08:02:21Z")

</div>

How strange. I’m assuming Cordova adds a bit of overhead, but I can’t believe it adds enough overhead to slow you down to 20fps.

I found this article that talks about performance limitations near the end:

> **[An Introduction to Cordova: Basics](https://code.tutsplus.com/tutorials/an-introduction-to-cordova-basics--cms-25146)**
>
> In this article, I’ll introduce you to Cordova, a framework used for developing mobile applications. If you’re new to Cordova or you want to know whether it’s the right tool for your next project,...

Have you considered making a browser-game?

---

<div class="post-metadata">

**Author:** ![Six-Winged](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Six-Winged](https://phaser.discourse.group/u/Six-Winged)\
**Post date:** [August 5, 2019, 9:53am UTC](https://phaser.discourse.group/t/matter-js-cordova/3293/3 "2019-08-05T09:53:34Z")

</div>

thanks for reply. well I checked out it with Box2D as well, seems like I choose wrong way for my purposes, JS + Cordova is too slow for using physics, so I switched to AIR + Starling, it hands Box2D with 60 fps without any problems…

---

<div class="post-metadata">

**Author:** ![tony](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tony](https://phaser.discourse.group/u/tony)\
**Post date:** [August 6, 2019, 6:52pm UTC](https://phaser.discourse.group/t/matter-js-cordova/3293/4 "2019-08-06T18:52:20Z")

</div>

Glad to hear you figured out a solution. Interesting to know that Flash is a viable choice for mobile development

---

<div class="post-metadata">

**Author:** ![Six-Winged](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Six-Winged](https://phaser.discourse.group/u/Six-Winged)\
**Post date:** [August 6, 2019, 7:25pm UTC](https://phaser.discourse.group/t/matter-js-cordova/3293/5 "2019-08-06T19:25:59Z")

</div>

yeah of course, with Starling framework (it uses hardware acceleration for 2D graphic) and Feathers UI library. also Box2D keeps 60 fps there easely 🙂
