Rhubarb is a lightweight WebSocket library for multiplayer HTML5 games. It is originally designed to be used by the ROYGBIV Engine. However, it can be used outside of ROYGBIV as well. Javascript is slow, therefore we want to have as much main-process-power as we can in order to do game related calculations, graphics rendering and achieving 60 FPS. For multiplayer games achieving 60 FPS gets even more complicated given that transferring data over WebSockets is a slow operation. It also triggers GC activity by copying the transferred data (if JSON is the preferred way), which eventually slows down the main thread as well.

Features

  • Using WebWorkers to handle networking out of main thread
  • Using transferables between the main thread and the worker to prevent GC activity (zero copy)
  • Redefining/compressing and sending protocols using Float32Arrays
  • Allowing users to define their protocols in a high-level way and taking care of all the dirty bitwise operations internally
  • Allowing sharing same protocol definitions between server/client
  • Allocating objects only when being initialized

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Rhubarb

Rhubarb Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rhubarb!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript WebSocket Libraries

Registered

2023-08-14