Hello,For a multiplayer game, I've decided to use Node.js. I've figured that the only thing that will do heavy computations are NPCs. So I figured I'll have a loop which will go through all NPCs and have them fight or move or whatever. So before start learning Node.js I wanted to I'd get your opinion on a few things.I read that exchanging JSON objects between threads is expensive. Would you recommend this approach? That is, having player actions on event loop and having a worker thread handle NPCs?Or, I can have Java or another program handle NPCs part and then transfer JSON object to Node.js. How efficient are sockets? I reckon that would be way slower than having a Node.js worker thread handle NPCs.Or is using a Node.js a bad idea?Thank you
Submitted January 07, 2018 at 02:02PM by AlliTurna
No comments:
Post a Comment