3 ms·
In memory. MMO servers store all world state in memory, and each server has a capacity usually in the 10,000 player range. You'd be impressed how fast computer
by Jasper_ 7y ago
In memory. MMO servers store all world state in memory, and each server has a capacity usually in the 10,000 player range.
You'd be impressed how fast computers actually are -- 10,000 objects isn't actually that many. Since the server knows where all clients know, the server knows what the client can see, and the server only has to update the client with relevant information, like the 100 closest players to it.
- TylerE 7y agoGenerally the server does not in fact know what all the players are doing. They're sharded at the most granular possible level (typically a zone or instance) so any server instance knows about no more than 50-100 players.
- jmnicolas 7y ago> 10,000 objects isn't actually that many Yeah but these 10k objects are containing themselves many more objects (item inventory, proximity mobs etc).
- RussianCow 7y agoNot just that, but you have to do physics and other calculations on each object and even between objects many times per second. So if your server handles 20 ticks per second, you only have a budget of 50ms per tick. Even on a beefy, many-core server, that's a lot to do in not a lot of time, and you can't afford to have any inconsistencies with performance (like GC stalling for several ticks).