Jump to content

BabylonJS + Multiplayer code


Threedy
 Share

Recommended Posts

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? 

Link to comment
Share on other sites

  • 10 months later...

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

  • Recently Browsing   0 members

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