MisterTea / MAMEHub

Netplay-capable multi-machine emulator
http://www.mamehub.com
117 stars 29 forks source link

Why mamehub don't use ggpo? + Alternative netcode suggestion (github link) #158

Closed antervud closed 10 years ago

antervud commented 10 years ago

I was curious to know why ggpo netcode wasn't used in mamehub, it's very good and the source is available on ggpo.net i think.

Anyway, recently i stumbled upon a post in "shoryuken.com" fighting games community forums, an user posted this link:

https://github.com/rcmagic/ShobuNetwork/

it is a rollback netcode released under the mit license

you can test it in this game:

http://shobugames.com/fearlessnight (a fighting game, alpha release)

some users on that forum tried the game and said it's a very good netcode (knowing how much people in that forum care about lag and responsiveness, i tought it may worth a shot)

i'm not a programmer so i don't know if it's applicable or not, i post this as a suggestion, maybe it can be useful to improve mamehub actual netcode that isn't very responsive with a latency >100ms

MisterTea commented 10 years ago

Hey @antervud,

MAMEHub used to have rollback support but it was dropped pretty early on.

The reason why this does concept not work with MAMEHub is that rolling back requires a lot of state saves (many state saves per second). Depending on the game, a single state save can be around 100MB. Even if a machine had enough RAM to keep around 10 or 20 state saves, doing the saving and restoring is so expensive that no machine could process them in realtime.

For games where the state save is small, I agree that a rollback method would be preferred. I can look into choosing to use rollback or not based on the state size, or making it an option in the INI.

antervud commented 10 years ago

wow, i discovered mamehub 3 months ago, so i didn't knew it already had a rollback netcode

making it an option will be so good, i see many people on mamehub playing fighting games

i think that will make a difference

MisterTea commented 10 years ago

Dup of #231