Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase chunk size for reads/writes under emscripten #15845

Merged

Conversation

JoeOsborn
Copy link
Contributor

Under emscripten, we only use MEMFS so all reads/writes are in-memory anyway.

Each read/write seems to return control to JavaScript and take a full frame before returning for another read. For systems with larger save states (e.g. SNES has 800KB+ states), this means it can take 3-4 seconds to save or load a state just because of unnecessary pauses for FS operations.

Accordingly, I've increased the read/write chunk size for states to 16MB.

@LibretroAdmin LibretroAdmin merged commit 3167529 into libretro:master Oct 31, 2023
22 checks passed
JoeOsborn added a commit to JoeOsborn/RetroArch that referenced this pull request Nov 2, 2023
Sunderland93 pushed a commit to Sunderland93/RetroArch that referenced this pull request Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants