From f432cd3f787e24fbc5b498532555dca836d87c81 Mon Sep 17 00:00:00 2001 From: LibretroAdmin <105389611+LibretroAdmin@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:50:17 -0700 Subject: [PATCH] Revert "Tweaked limit, amended comment." This reverts commit c1bb2fd9a104ad5efceabba890b9d7b91882b5c7. --- tasks/task_save.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tasks/task_save.c b/tasks/task_save.c index c21be14fcf..e0ce676f39 100644 --- a/tasks/task_save.c +++ b/tasks/task_save.c @@ -56,15 +56,12 @@ #else /* A low common denominator write chunk size. On a slow (speed class 6) SD card, we can write 6MB/s. That gives us - roughly 100KB/frame. + roughly 100KB/frame, which is rounded up to 128 KB/s. This means we can write savestates with one syscall for cores - with less than 100KB of state. Class 10 is the standard now + with less than 128KB of state. Class 10 is the standard now even for lousy cards and supports 10MB/s, so you may prefer - to put this to 170KB. This all assumes that task_save's loop - is iterated once per frame at 60 FPS; if it's updated less - frequently this number could be doubled or quadrupled depending - on the tickrate. */ -#define SAVE_STATE_CHUNK 100 * 1024 + to double this. */ +#define SAVE_STATE_CHUNK 128 * 1024 #endif #define RASTATE_VERSION 1