ClusterM / hakchi2

Tool that allows you to add more games to your NES/SNES Classic Mini. WARNING: hakchi2 is no longer supported. Please use hakchi2 CE.
GNU General Public License v3.0
2.93k stars 456 forks source link

Rewind frames management option/function #1001

Open Gab-75 opened 6 years ago

Gab-75 commented 6 years ago

Hi guys, in a next hakchi2 release it would be useful to add a function/option to manage the "rewind frames" for all games or for a selected bunch of games... in the current release you need to edit manually the related command line "-rollback-snapshot-period FRAMES" for each single game.

PS: if I'm not mistaken, decrease the frames count it should decrease the savestate file size and it can be very useful, especially with the extra_space hmod (only 50 MB for savestates and "in games" saves).

electrocret commented 6 years ago

This would be quite useful.

keejelo commented 6 years ago

I did a quick commandline testing using the syntax: -rollback-snapshot-period FRAMES where FRAMES was changed according to the table below

( I have the canoe_save_compress.hmod installed )

SNES game-rom: Final Fight (U) ID: CLV-U-NCYUE

Gameplay: 1 player (Cody), played up to the same point in the game, finished first street, in each test, used aprox. the same time, never died. Then quit with reset button and made a suspension point. Then exported these savefiles with hakchi2 save-manager and compared the filesizes in Windows Explorer file listing.

This is the results of the suspension points:

Susp.point.secs. FRAMES Filesize (kb)
60 900 182
47 600 171
20 300 176
14 200 177
08 100 165

(the filesizes are not wrong, they did vary like this, 47 secs was 171 kb and 14 secs was 177 kb)

The results dont differ that much, 17 bytes at the most, so maybe there's not much extra diskspace to gain by changing the FRAMES syntax (?)

Also tried using -rollback-discard-data and -use-state-saver just see if it made any difference in filesize, but it didnt. ( https://github.com/ClusterM/hakchi2/wiki/Command-line-arguments-(SNES-Mini) )

Anyone done some similar testing ???? .