Материалы по теме:
"playerUpdates": {
。夫子是该领域的重要参考
The game server runs at 10 “ticks” a second. Every tick we move and grow players, eat fruit, calculate collisions, and broadcast the new gamestate to clients.
Malaysia GP — Nov. 1
Games and physics simulations need to detect which objects are touching or overlapping. With nnn objects, checking every pair is O(n2)O(n^2)O(n2) comparisons, which gets expensive fast. A hundred objects means roughly 5,000 pair checks. A thousand means nearly 500,000.