increase chunk size for reads/writes under emscripten (#15845)

This commit is contained in:
Joe Osborn 2023-10-31 07:18:45 -07:00 committed by GitHub
parent 43105ab5c7
commit 3167529fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,11 @@
#include "../cheat_manager.h"
#endif
#if defined(HAVE_LIBNX) || defined(_3DS)
#ifdef EMSCRIPTEN
/* Filesystem is in-memory anyway, use huge chunks since each
read/write is a possible suspend to JS code */
#define SAVE_STATE_CHUNK 4096 * 4096
#elif defined(HAVE_LIBNX) || defined(_3DS)
#define SAVE_STATE_CHUNK 4096 * 10
#else
#define SAVE_STATE_CHUNK 4096