4 ms·
I wonder if it's even theoretically possible to create a drop-in netcode solution that gives satisfactory results for all games with minimal effort. Or even for
by PhasmaFelis 13y ago
I wonder if it's even theoretically possible to create a drop-in netcode solution that gives satisfactory results for all games with minimal effort. Or even for a specific subset of games, e.g. 2D platformers. (Turn-based games, of course, are trivial.)
I'm inclined to think that it's not possible, since netcode always involves compromises, and the "right" compromises are going to vary a lot depending on the game. Over short distances you can achieve ping times good enough that it doesn't matter, but over longer distances the speed of light puts an absolute cap on your pings--13ms for New York to L.A., as much as 67ms for points on opposite sides of the equator.
- Impossible 13y agoGGPO (http://ggpo.net/ http://ggpo.net/) isn't exactly drop in, but it works well for most games that require low latency and have minimal per frame state changes (most arcade games). Integrating a GGPO like solution into Game Maker or Unity might make it easy to enable netplay for most games in the style of modern local multiplayer indie games (Bari Bari Ball, Hokra, Samurai Gunn, Towerfall, Nidhogg, etc.) Unity announced a complete rewrite\update of their existing network code (http://blogs.unity3d.com/2014/05/12/announcing-unet-new-unity-multiplayer-technology/ http://blogs.unity3d.com/2014/05/12/announcing-unet-new-unit...), but it seems to be mostly be a fixed implementation of existing functionality rather than a true drag and drop networking solution. In practice there is no solution that works for everything, but it should be possible to build a solution that works reasonably well for a large subset of games.