Skip to content

Commit 0792144

Browse files
committed
Revert "Revert "Tweaked limit, amended comment.""
This reverts commit f432cd3.
1 parent d244ee4 commit 0792144

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tasks/task_save.c

+7-4
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)