fps drops to single digit when use picture based custom menu

hello, i am trying to make a phone menu based on this tutorial, https://www.rpgmakerweb.com/blog/eventing-a-picture-based-menu and . i basically followed exact steps, except i am using 8 buttons instead of 3 buttons as in tutorial.
however, i am having a fps drop issue when i open the menu, it's actually unplayable.. fps drop in both normal tile map and parallax map.
when left or right key is pressed once, fps drops from 160 -> 3-4, anyone has solution to fix this?
my pc is pretty decent, 2 years old rig, 32gb ram, ssd drive, 3090, so i dont think it's a pc issue?

1710678669994.png


1710679083584.png


these are plug ins i am using currently.
1710679734641.png
1710679777057.png
do you use buffers as wait 5-10 when pressing?
as mostly it is required, specially if its a parallel process, you want to make
sure it runs smoothly, but we need to see how your events looks like to make
sure you didn't made any mistake.

even if you only use left/right, you can also add up/down based on your configure
to navigate faster or with mouse over instead of arrows or use both.
ok my bad, i missed this waited 1 frame command. this little bugger is the reason. lol
1710681376578.png
With parallel processes the wait command causes the parallel to be skipped for some frames.
skip not enough and the processor cannot handle the processes, causing true lag.
skip too many and the process reaction is delayed, something which looks similar to lag but is not.

you should always experiment to find the best number of waits as that changes with the complexity and number of parallel processes.

Original thread: https://forums.rpgmakerweb.com/threads/fps-drops-to-single-digit-when-use-picture-based-custom-menu.166904/