Threedy

BabylonJS + Multiplayer code

Recommended Posts

On 4/4/2016 at 4:37 PM, Threedy said:

It seems that CannonJS is the bottleneck so far (and I don't think there is a better Javascript 3D physics engine performance wise at the moment).

Oimo is faster, but has less features.

Share this post


Link to post
Share on other sites
Quote

it would be safe to bet you are not using clones or instances of your cube mesh, and are calling a new draw for all of them.

It's not babylonjs related since I have tried adding only 250 boxes on Cannonjs only (so without Babylonjs, on the server). It then gave the lag.

It could be something different I am probably missing though, with cannon. Perhaps I need to use some sort of copy regardless inside of Cannon I'm yet not aware of?

I understand from another forum topic that the server loop on the client side and server side (in terms of physics) should be the same? So for cannon, let's say 1/60 as timestep? 

Share this post


Link to post
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.

Guest
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.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.