Giter Club home page Giter Club logo

Comments (12)

uncedric avatar uncedric commented on July 18, 2024

how would you implement that? could you point us to one example?

from agar.io-clone.

chrisevans1001 avatar chrisevans1001 commented on July 18, 2024

A starting point https://github.com/binaryjs/binaryjs

from agar.io-clone.

huytd avatar huytd commented on July 18, 2024

honestly, I have no idea how to do it. haha. that's why I put it here but not assigned to myself yet.
thanks @chrisevans1001 for the hint. I will take a look at this one.

from agar.io-clone.

krtr avatar krtr commented on July 18, 2024

Socket.io in current version can send binary data just like json

http://socket.io/blog/introducing-socket-io-1-0/#binary-support

from agar.io-clone.

huytd avatar huytd commented on July 18, 2024

great!!!! 👍

from agar.io-clone.

huytd avatar huytd commented on July 18, 2024

There is a feedback on HackerNews, he compared the amount of data transfer by the original AgarIO game and our clone. Here is the details:
https://news.ycombinator.com/item?id=9633252

Original Agar:

  • Compressed binary data
  • Max packets size: 187 bytes

Our clone:

  • JSON objects/String
  • Packets size: 4253 bytes

There is a very long way ahead to optimize the server. First is the binary data, then, may be we will find a way to reduce packets size (only send changed values, etc)

from agar.io-clone.

Azeranth avatar Azeranth commented on July 18, 2024

Perhaps we could have the user compress to a BLOB format and then once it is in a BLOB the server could handle it as BLOB will move easier

from agar.io-clone.

Azeranth avatar Azeranth commented on July 18, 2024

If the user does the BLOB then we are utilizing some of the user resources not taxing the program

from agar.io-clone.

giongto35 avatar giongto35 commented on July 18, 2024

Super interesting !!! thank you

from agar.io-clone.

huytd avatar huytd commented on July 18, 2024

Found an interested article about Binary in JS
http://danthedev.com/2015/07/25/binary-in-javascript/

from agar.io-clone.

huytd avatar huytd commented on July 18, 2024

Somebody has done a serious research on Agar.io data structure
https://github.com/Eureka22/Agar.io-Protocol/blob/master/Protocol.md

from agar.io-clone.

igorantun avatar igorantun commented on July 18, 2024

@huytd That Protocol.md is pretty interesting!

from agar.io-clone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.