Jump to content

WebRTC integration examples?


bbmario
 Share

Recommended Posts

I didn't mean specific to Babylon, doesn't matter, just using a graphics engine to demonstrate the concept. It could be three.js or anything else. Since Babylon is turning more into a gameframework, with example integrations with physics engines and so on, it makes sense to have a networking example as well.

Link to comment
Share on other sites

Also, think putting network checking into the render loop, might not be a good idea.

 

This seems better suited to an extension, since web workers are usually in a different .js file anyway.  Isn't there already a network related extension, scoreboard, that might be use-able / improvable for this purpose?  Or is this peer-to-peer, not client-server?

Link to comment
Share on other sites

I would suggest to handle every network communications (ie : high or unpredictable latency compared to the render loop rate) in a dedicated webworker besides the BJS engine thread.

 

Why would you do that? It sounds like the overhead of transferring data to and from the web worker might cost more than actually computing a simple linear interpolation in the main thread (which is actually a simple division).

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.

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