I am creating multiplayer game using socket io and three js. I get object with x and z position of all the connected players when any one of them move and now I’m Looping through that object and updating position of the object but of course it’s not good for performance. What could be the best way to get best performance out of this scenario. Also I need to calculate distance between user and all the other player and need to know when there is someone in user’s range. I’m not sure what should I do. I need solution which will run good at 100 users too. Is there a way?
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to draw multiple moving objects effectively? | 0 | 489 | December 8, 2021 | |
Performance optimisation of a scene with hundred of thousands of cubes | 6 | 1611 | July 26, 2023 | |
How to handle many complex skinned mesh models animating at the same time on a seenable frustum in the scene? | 4 | 1886 | November 24, 2018 | |
How to set up correctly my multiplayer | 1 | 304 | December 27, 2023 | |
Many objects causing low fps, optimization possible without losing individual objects? | 22 | 4746 | May 23, 2021 |