After some time learning JS, I came back to a MV project of mine. Out of curiosity, I took a look at its core js files(all the rpg_* .js) and notice that none of them have the words "Async", "Await" and "promise". After testing my game, and turning off a loader pluging(made by SRD) that I had installed, I also found that loading, events(parallel, common, whatever the type),etc all impact the main thread a lot.
So before suggesting, I would like to know: Does MV take advantage of Async functions to do CPU expensive tasks?
Async functions, despite of being a lot harder to handle(IMO), can automatically offload tasks to other threads(at least on PC, where the browser/nwjs handles the game. I can't speak por mobile). Using it would allow to load all (possible) next maps in the background(by checking all events active in the current map searching for map transfers in them, preloading those maps and their resources using a async function as soon as you enter the map), offload parallel events so they won't lag the game,etc.
So before suggesting, I would like to know: Does MV take advantage of Async functions to do CPU expensive tasks?
Async functions, despite of being a lot harder to handle(IMO), can automatically offload tasks to other threads(at least on PC, where the browser/nwjs handles the game. I can't speak por mobile). Using it would allow to load all (possible) next maps in the background(by checking all events active in the current map searching for map transfers in them, preloading those maps and their resources using a async function as soon as you enter the map), offload parallel events so they won't lag the game,etc.