Skip to content

Commit

Permalink
increase chunk size for reads/writes under emscripten (#15845)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeOsborn authored Oct 31, 2023
1 parent 43105ab commit 3167529
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/task_save.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3167529

Please sign in to comment.