Jump to content

Arcade vs P2/Box 2D Performance for MMO


Recommended Posts

I'm wondering if it's possible to run a multiplayer Box 2D game while remaining very performant.

Game characteristics:

  • 2d platformer shooter
  • Online multiplayer
  • Map is about 4000px x 2500px
  • 6 - 10 players at a time
  • NodeJS and Socket.io

Right now I create the maps with lots of rectangles but I'm interested in creating arenas similar to Soldat example here

The Arcade physics are highly performant and if I switch to Box2D how significant is the performance difference?

Are there any stress tests out there that demonstrate this?

Link to comment
Share on other sites

The way I understand it performance from best to worse goes Arcade -> Box2D -> P2 but the complexity of what you can do also increases.

In theory, the client shouldn't need to calculate physics on the other players, so I would think the performance impact of either system is pretty small.

Is your map 4000x2500 pixels, or tiles?  I saw performance hits with about a 250x50 tilemap on weaker devices using P2 physics.  Arcade didn't see hits until I approached about 250x250.  If your map is 4000x2500 tiles, I can't imagine you won't see lag with any system.  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...