Skip to content

Commit c1bb2fd

Browse files
JoeOsbornLibretroAdmin
authored andcommitted
Tweaked limit, amended comment.
1 parent 9c4ac35 commit c1bb2fd

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tasks/task_save.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,15 @@
5656
#else
5757
/* A low common denominator write chunk size. On a slow
5858
(speed class 6) SD card, we can write 6MB/s. That gives us
59-
roughly 100KB/frame, which is rounded up to 128 KB/s.
59+
roughly 100KB/frame.
6060
This means we can write savestates with one syscall for cores
61-
with less than 128KB of state. Class 10 is the standard now
61+
with less than 100KB of state. Class 10 is the standard now
6262
even for lousy cards and supports 10MB/s, so you may prefer
63-
to double this. */
64-
#define SAVE_STATE_CHUNK 128 * 1024
63+
to put this to 170KB. This all assumes that task_save's loop
64+
is iterated once per frame at 60 FPS; if it's updated less
65+
frequently this number could be doubled or quadrupled depending
66+
on the tickrate. */
67+
#define SAVE_STATE_CHUNK 100 * 1024
6568
#endif
6669

6770
#define RASTATE_VERSION 1

0 commit comments

Comments
 (0)