When making a multiplayer game with 1000 people playing simultaneosly, should I use a thread for each player or is a single thread which does context switching fast enough?

And… I’ll tell you here and now that achieving huge player counts is not done by a single computer or processor. You can up the specs of your PC but at some point you need scalability. For a simple explanation and even open-source code to look at and understand, look no further than the Minecraft bungee project.

https://www.beastnode.com/portal/knowledgebase/113/What-is-BungeeCord.html

https://www.spigotmc.org/wiki/bungeecord/

And hey, in the end you still have a botnet to use if you ever need to do any ddosing. :rofl:

1 Like

I think you’re missing the point. If you don’t currently even have a game for people to play the number of people you need to support for your game, right now, is zero.

You need to make a game first before you worry about the number of users playing it.

1 Like

see the jfella answer, it tells u what iam really asking