5 ms·
Curious what the tech stack and data flow looks like for this, is the server running a C++ game representation and pushing updates to the javascript clients via
by bcjordan 12y ago
Curious what the tech stack and data flow looks like for this, is the server running a C++ game representation and pushing updates to the javascript clients via WebSockets?
Noticed the string from the level editor `std::vector<LevelObject*> wallByColor[`
- Matheus28 12y agoYep the server is in C++. The level editor is mostly for personal use right now, so it just generates the C++ code that I need to paste into a file. I plan to make the editor public and make an easy process to submit levels so maybe some day no one will ever be able to reach the end.
- notastartup 12y agowhat linode box are you using?
- Matheus28 12y agoThey're really overpowered for what they're using atm. I'm just keeping extra capacity just in case. Web server is on a Linode 2048 and Game server is on a Linode 4096 (not even using 15% of the CPUs).
- notastartup 12y agowhat does that translate into ram and cpu? what are you using for your web server?
- Matheus28 12y agoWeb server is just nginx. The RAM and CPU usage are really low, there isn't anything CPU or memory expensive in the game to be honest.
- notastartup 12y agoi just want to know how much ram and cpu i need to handle front page hackernews traffic.
- Matheus28 12y agoIf you're not hosting heavy files (big images, videos, etc.), not much, really. The cheapest plan on linode is enough.