that annoying Mini Lag when opening Game Menu

Hey folks,

is it just me or do you also have the feeling that the Menu always needs half a second to appear when I press Esc or click on the Menu Touch Button? It drives me crazy ._.
You are certainly know coding more than me. Can you posting the picture of FPS during you open the game manu? I think it would be helpful to identify the problem. I am not sure it is F2, F8 or F9, sorry. Nevermind, I do a quick search. It is F2 to show the Frame per Second.
I think there's a deliberate 2-frame wait (not sure if that's what you're seeing?).

You could try copying the Scene_Map.prototype.callMenu method into a .js file, erasing the last line, and importing as a plugin to see if that helps. I'd be hesitant to do that since I don't know exactly why the wait is there (performance on lower-spec systems?). Also I haven't personally noticed it in-game, just discovered it when messing around with other menu stuff. 😴

Edit: actually yea, 2 frames probably isn't noticeable, it's likely something else.
You are certainly know coding more than me. Can you posting the picture of FPS during you open the game manu? I think it would be helpful to identify the problem. I am not sure it is F2, F8 or F9, sorry. Nevermind, I do a quick search. It is F2 to show the Frame per Second.
Well, although I know how to program, I prefer staying on the higher level, that means new Plugins, and not going deeper into the Core functions that loads the Main Menu.
I can see that the FPS goes down to 30 but that 30 would be still enough to have a fluent gameplay.

I think there's a deliberate 2-frame wait (not sure if that's what you're seeing?).

You could try copying the Scene_Map.prototype.callMenu method into a .js file, erasing the last line, and importing as a plugin to see if that helps. I'd be hesitant to do that since I don't know exactly why the wait is there (performance on lower-spec systems?). Also I haven't personally noticed it in-game, just discovered it when messing around with other menu stuff. 😴

Edit: actually yea, 2 frames probably isn't noticeable, it's likely something else.
Thanks for your feedback, however, on my machine it's definetly more than only 2 Frames, it is literally half a second. And I'm using a Microsoft Surface Book 2 with 8 or 16 (?) GB RAM and a SSD. And you really haven't noticed this lag? Then it may not be the Maker's fault, then it could be something else :/
Thinking out loud... If you're on an SSD then I doubt it's a file-access problem. I looked up specs for Surface Book 2 and it seems to use integrated graphics, but I wouldn't expect a problem there, given the CPU models.

Are you testing with plugins, or without? Some plugins might be very demanding and/or in need of some optimisation. 😅

There are other factors that can slow things down, too, e.g. if you have anti-virus with an "active script scanning" feature, it may be scanning stuff mid-game and locking up the game for half a second here and there. I know some people had issues with that in MV; in that case you should be able to mark the install and/or project folder(s) as "trusted" in the AV settings. 😮‍💨

Hope you find a fix! 🙂
I don't know bout MZ, but so far RPG Maker scene menu ALWAYS took a snap to bitmap then blurred it. Otherwise, the menu background will be a black screen.
I think that's the cause of the lag...? Does MZ also do that?
If that's the case, how bout try removing that part and test it?
If it is a local computer problem, then I might know why and how to fix it. After all, I am just learned in class. Also, I am asking to be not mean or anything because I might get the wrong answer and get backfire from people here.

If it is like @caethyril said, You may need a faster graphics card, more RAM, or a better CPU. Your hard drive may be too slow, causing the game to slow down as it’s forced to read data from your hard drive. You may have too much junk software running in the background, competing for resources.

I hope that helps you understand me better now. FPS is 60 when I do nothing when playtesting and it goes down to FPS 49 speed when I open the menu and closing multiple times.
Thanks for all of your messages!

I tried to remove the line that snaps the Map as Background; couldn't feel any improvements.

However I realized that I feel this lag only when I click on the Touch Button, not when I press Esc or Right Mouse Click. I will look further into the Code about the Touch Button, maybe its trigger is not as fast as the other methods, or it's because my laptop's touch pad itself is slow.

Original thread: https://forums.rpgmakerweb.com/threads/that-annoying-mini-lag-when-opening-game-menu.126919/