Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

online play via node.js (currently low priority) #35

Open
irapha opened this issue Oct 13, 2014 · 2 comments
Open

online play via node.js (currently low priority) #35

irapha opened this issue Oct 13, 2014 · 2 comments
Assignees

Comments

@irapha
Copy link
Owner

irapha commented Oct 13, 2014

No description provided.

@irapha irapha self-assigned this Dec 7, 2014
@irapha
Copy link
Owner Author

irapha commented Dec 7, 2014

many bugs for now, but it's kinda maybe sort of working...

@irapha
Copy link
Owner Author

irapha commented Dec 10, 2014

Right now, for every game loop, we make 40+ firebase requests. The loop runs every 33 milliseconds. Firebase can't handle this.

The solution I'm envisioning right now is to create a huge JSON with the changes that have to be made in firebase and, at the end of each loop, make a single firebase request. Something like:

gameRef.child("planets").update({ "planet0": { //updated info }, "planet3": { //updated info } });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant