Gensun's Performance Patch: Scenes

Gensun_PerformancePatch_Scenes.js v2.1.2 (MV)
by Gensun​
Introduction
The default engine deletes map and menu scene data from memory any time you leave them. This results in lag from entering or leaving the main menu as the game has to re-create all the user interface and graphical data stored in those scenes. This effect can be very noticeable if you have many heavy plugins loaded! This plugin aims to address this issue.

Features:
  • Reduced loading time when switching to or from the map or main menu
What this plugin does not do:
  • It will not increase your FPS
Potential side effects of this plugin:
  • Menu cursor position is now saved upon re-entering the main menu
  • Slightly higher memory load may cause issues for computers with low memory ( ~4GB ), resulting in crashes from random key objects being tossed out by garbage collection.
  • If you're a dev who likes using the editor during playtest, map data can be updated to your newest saved changes by entering and leaving the main menu. With this plugin, that feature is no longer there.
Tested compatible:
  • SRD_CustomBattleIntro.js
  • SRD_MenuBackgrounds.js
  • HIME_PreTitleEvents.js
Load this plugin after these plugins:
  • YEP_X_CoreUpdatesOpt.js
  • MOG_MenuBackground.js
These types of plugins can possibly have compatibility problems:
  • Any plugin that deals with background sprites for the main menu. SRD_MenuBackground and MOG_MenuBackground have been made compatible but similar plugins aside these may have possible unresolved incompatibilities.

Terms of use:
This plugin is free to use for commercial and non-commercial projects alike.

Version history:
v2.0 Public Release
v2.1 Fixed issue which background bitmap is not properly updated for the main menu
v2.1.2 Compatibility fix with SRD_MenuBackgrounds, and now the map scene is saved upon entering a name input scene
Hey Gensun, can you provide the terms of use?
Hey Gensun, can you provide the terms of use?
Figured I had forgotten something, but yes, it's now provided
I'll try it out. Also, another side effect is if you have a semi transparent menu it will always show the map background of when you first opened the menu.
I'll try it out. Also, another side effect is if you have a semi transparent menu it will always show the map background of when you first opened the menu.
This bug does not happen in my projects. What plugins are you using?
This bug does not happen in my projects. What plugins are you using?
It's not a plugin conflict. I turned off every plugin except yours, opened the menu on one map, transferred to a second map, opened the menu again, and it has the background of the first map.

If I close the game then turn off your plugin too, then relaunch the game the menu background is the same as the current map.
It's not a plugin conflict. I turned off every plugin except yours, opened the menu on one map, transferred to a second map, opened the menu again, and it has the background of the first map.

If I close the game then turn off your plugin too, then relaunch the game the menu background is the same as the current map.
I was able to replicate this bug on a blank project, and updated to Version 2.1 where this issue no longer surfaces
This is so good, well done.
Version 2.1.2 is up, this update adds a new plugin parameter to allow updating the menu background sprite, and it now saves the map scene upon entering the name input scene.

This plugin now is compatible with SRD_MenuBackground!
Having a minor issue. I'm using this plugin along with one that swaps out the menu screen (SRD Alt Menu Screen: Bust Select) and the HP value displayed isn't updating when opening the menu. If I gain or lose HP while outside the menu screen and then open it, whatever the value was the last time it updated successfully is what displays. It updates successfully when entering submenus that display HP.

EDIT: After some further investigation it seems the culprit for the issue was the Pretty Sleek Gauges plugin, not this one.
Having a minor issue. I'm using this plugin along with one that swaps out the menu screen (SRD Alt Menu Screen: Bust Select) and the HP value displayed isn't updating when opening the menu. If I gain or lose HP while outside the menu screen and then open it, whatever the value was the last time it updated successfully is what displays. It updates successfully when entering submenus that display HP.
I may get a chance to investigate this issue around Sunday.
EDIT: I was not able to replicate the bug. I've DM'd you for more details.

Original thread: https://forums.rpgmakerweb.com/threads/gensuns-performance-patch-scenes.159909/