Lag Spikes when opening/closing menu

Hi, My problem doesn't come with a plugin or anything like that. Just by creating a new project, without doing anything, I playtest and when I open the menu I get down to 48 fps, closing it is even worse.


In my legit project, using Yanfly Core plugin increases the spikes from 48 to 20 fps for opening and closing does 2 spikes of 20 fps. I get spikes in other situations like first attack of a battle, navigating the menu, etc but they are not as big as opening and closing the menu.


I'm not getting any lag from the Editor.


I want to know if this is a known matter because I don't see people talking about this and I've been looking for a solution for a long time.


It completely ruins the gaming experience.


Thanks.


My PC:


Intel Core I7 4770


16gb  1333 ram


GPU GTX 650 DE


I think I should be able to run my silly 48 pixel game like VXAce did without any lag...


Project:


https://mega.nz/#!9EpUXa7K!ym7K1OU0TU3qjknofDpIL4TIyOw4qVVbfF2ijWPv620
Did you include something else than the standard blue background in the menu?


I just ask because pictures in the menu could use some performance especialy if they get deleted every time you close the menu insteed of making them just transparent.


Iam no Scripter but i somehow remember to have read about this in old VX-ace Days. Dont have MV so i cant test it.
No, I haven't modded anything related to pictures in the menu in my project or fresh ones.


I'm posting this because this is an issue I have with projects as they are created and this happens to me in 2 different computers.
Bitmap.snap() is probably to blame for the menu opening delay (and possibly for the initial battle delay). Try commenting out the following line and see if it improves the opening of the menu :

Code:
// js/rpg_scenes.js - line 450 ~ 458

// snapForBackground() takes a snapshot of the current map and
// adds a blur filter which is a bit of a slow process.
Scene_Map.prototype.terminate = function() {
    Scene_Base.prototype.terminate.call(this);
    if (!SceneManager.isNextScene(Scene_Battle)) {
        this._spriteset.update();
        this._mapNameWindow.hide();
        // SceneManager.snapForBackground();
    }
    $gameScreen.clearZoom();
};
Also to mention they released newer patched versions of the MV, are you up to date? because this is the first maker with ongoing development/bug fixing from official side.
Sorry for the late answer.


Exhydra, commenting that line help a bit when opening the menu, but just gives me 30-34 fps instead of 26-28. The biggest lag spike actually happens when closing the menu.


And Bex, I am using version 1.3.1, I don't know.



I just wanna know, does this happen to you too? Or is it just me for some paranormal reason?

Original thread: https://forums.rpgmakerweb.com/threads/lag-spikes-when-opening-closing-menu.68190/