Performance: Lobby and matchmaking basics
MEDIUM IMPACT
This concept affects the initial load time and responsiveness of multiplayer game sessions by managing player grouping and connection setup.
async Task StartMatchmakingAsync() { await ConnectAllPlayersAsync(allPlayers); UpdateUIOnce(); }
void StartMatchmaking() {
foreach (var player in allPlayers) {
ConnectPlayerToSession(player);
UpdateUI();
}
}| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Sequential player connection with UI update per player | High (multiple updates) | Multiple reflows | High paint cost | [X] Bad |
| Batch player connection with single UI update | Low (single update) | Single reflow | Low paint cost | [OK] Good |