RPG Maker MV Plugin that uses web workers to save asynchronously on its own thread
NO! This code uses the same external libraries as MZ (localforage and pako) so it is able to accomplish some of the same things. However the code is very clearly just MV with some "async" and "await" keywords thrown in. No code was copy+pasted from MZ.
- Saving is asynchronous
- Compressing save data is asynchronous on the main thread
- Loading is asynchronous
- Saving is asynchronous
- Compressing save data is asynchronous AND uses a dedicated thread via a web worker
- Loading is synchronous like default MV
At first I only released this an inspiration for more talented programmers. But I've been using it for several weeks with no issues. Feel free to give it a try and report any bugs.
- Copy js/libs/localforage.min.js and js/libs/pako.min.js into your own js/libs
- Add script tags for localforage and pako into your index.html file
- Copy the files from js/plugins into your own project's plugins folder.
- Delete N_BloatSave if you don't want it. It's just for testing.
- Activate N_SaveManager in your plugin manager.