# Physics in different browsers (Cannon.js)

**URL:** <https://discourse.threejs.org/t/physics-in-different-browsers-cannon-js/23621>\
**Category:** Questions\
**Tags:** physics, cannonjs, threejs\
**Created:** [February 18, 2021, 9:15am UTC](https://discourse.threejs.org/t/physics-in-different-browsers-cannon-js/23621 "2021-02-18T09:15:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdgarHovsepyan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/edgarhovsepyan/32/12326_2.png) [@EdgarHovsepyan](https://discourse.threejs.org/u/EdgarHovsepyan)\
**Post date:** [February 18, 2021, 9:15am UTC](https://discourse.threejs.org/t/physics-in-different-browsers-cannon-js/23621/1 "2021-02-18T09:15:39Z")

</div>

Hi friends, I have a question, I started using Cannon.js and Three.js, and created a game, but physics works differently in different browsers, is this due to the calculation of numbers in JavaScript?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [February 18, 2021, 9:26am UTC](https://discourse.threejs.org/t/physics-in-different-browsers-cannon-js/23621/2 "2021-02-18T09:26:16Z")

</div>

Could you specify how they work differently 🤔 (or share an example to test) ?

The main issue between browsers / devices I could imagine is the framerate and occasional bottlenecks - so be sure to pass an actual calculated `dt` between frames, when updating cannon world, instead of just an arbitrarily tiny number. 😅

---

<div class="post-metadata">

**Author:** ![drcmda](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@drcmda](https://discourse.threejs.org/u/drcmda)\
**Post date:** [February 18, 2021, 10:26am UTC](https://discourse.threejs.org/t/physics-in-different-browsers-cannon-js/23621/3 "2021-02-18T10:26:55Z")

</div>

could also be bugs. if you’re using cannon, use this fork which is maintained: [GitHub - pmndrs/cannon-es: 💣 A lightweight 3D physics engine written in JavaScript.](https://github.com/pmndrs/cannon-es) the original hasn’t seen a commit for more than 5 years, all its longstanding bugs were never fixed, prs never merged. if your problems persists, open an issue there and they’ll look at it.
