bbbradsmith / hatariB

Libretro core for Hatari emulation of Atari ST STE TT Falcon
GNU General Public License v2.0
20 stars 3 forks source link

Netplay stutter #19

Closed bbbradsmith closed 1 year ago

bbbradsmith commented 1 year ago

Netplay works but will stutter frequently.

My theory is that savestates start to diverge after a restore. There may be some non-functional data, like a timer or something that doesn't deterministically follow from a savestate restore.

To test this, put in code to dump a new uncompressed serialization each frame. Do some savestate restores and compare the data of the dumps frame by frame to see if/when they diverge. Once found, review the memory snapshot code to find the culprit.

bbbradsmith commented 1 year ago

Tried a few different methods to compare savestate and restore, once the divergences were mostly hammered out netplay has become quite reasonable.