libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.05k stars 1.81k forks source link

3+ Player netplay #430

Closed ToadKing closed 9 years ago

ToadKing commented 10 years ago

Looking at our current netplay code, it appears to be strictly 2 players only. Since we already have a server-client architecture, it shouldn't be too hard to add more players in theory, but the code is hardcoded with 2-player assumptions all over, including always assuming net input commands are always to one particular port.

@Themaister, do you think the current code is usable, or should I just make a separate netplay core for 3+ players?

Themaister commented 10 years ago

The netcode isn't really server-client. It's peer-to-peer after initial setup. It would be excessively hard to use rollback with more than 2 (2 is hard enough as it is).