Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

RPG Maker MV plugin that uses web workers to save asynchronously on its own thread

License

Notifications You must be signed in to change notification settings

thinknathan/mv-multithreaded-save

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mv-multithreaded-save

RPG Maker MV Plugin that uses web workers to save asynchronously on its own thread

Is this a port of MZ's async code to MV?

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.

MZ's code does this:

  • Saving is asynchronous
  • Compressing save data is asynchronous on the main thread
  • Loading is asynchronous

Whereas this plugin does this:

  • Saving is asynchronous
  • Compressing save data is asynchronous AND uses a dedicated thread via a web worker
  • Loading is synchronous like default MV

Is this code ready for production?

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.

How to use in your own project

  • 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.

About

RPG Maker MV plugin that uses web workers to save asynchronously on its own thread

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages