Switch release lag... but what's the cause?

I had been creating a call back to gen 1 pokemon (with similar map design and references) and the more I created, the more it started to lag during playtest. First it was noticeable during battles in just the hud, where it would either not recognize input, or double input. But as i implemented a world traversal event (surf to be precise) I went to test it and it was lagging so hard that movement on the map was choppy, and i couldn't even select the character that had the skill, it would skip over her.

I'm having trouble nailing down exactly what's causing the lag. At the point of this post, work has stopped on the Switch (in favor of the PC release) but currently on the switch version, there are 5 maps, with the 4th map having most of the events(jumping a ledge)

The switch itself (oled model) is using a 512 GB micro sd(though its been getting full, i have been managing to keep it open storage wise, most of what's on there is rpgs).

So... I'm just a bit stumped on what could be causing the lag, as I've seen that there are people who can release games on switch with rpg maker mv. Could it be something I've described here, or something I've overlooked? Is there anyone here who has used the Switch version who can offer insight?
This forum does not support console releases of RPG Maker.
When you go to the correct forum to ask for help, you should include more information about the project specifically, as (admittedly I skimmed this) at a glance, I see little information that informs us of your actually project: map size, map events, common events & running event types.

Best of luck.
Can you link the correct forum, because I have been having trouble myself finding somewhere that supports the console release, from Facebook pages to even gamefaqs, where I have yet to receive an answer. I'll be sure to post there with more specifics, as i was just going off of memory when writing my post, so I don't remember off hand the size or number of events.
Unfortunately, I do not own the Switch version of RPG Maker (nor do I even own a Switch). As a result, I am not involved with the console-based community and cannot provide a link for it.
Gotcha Gotcha Games is the developer of RPG Maker, and they do have their own forums (this is Komodo's forum, the publisher of the PC versions of RM)- though I have heard GGG forum is a bit of a ghost town.
Perhaps places like RM net could help? I am not sure what their policy is.

Here are some other links that may help. Always check the rules before posting.



edit:
one embed seems to have gone missing on my side, so here is the link to be copy-pasted:
Code:
https://www.reddit.com/r/RPGMaker/comments/pb6zl5/gotcha_gotcha_games_is_now_officially_on_reddit/
lag during playtest
large map with multiple events would do that.
cut down the content to smaller maps and see if there's a difference.
Usually lag is caused by multiple parallel common events or things like pathfinding or lighting scripts/plugins. If your surf mechanism is a parallel event or constantly checking positions that could do it.
Just as an info in general:
Modern PC's usually have more than enough resources to handle regular use, so the only way to create lag is by doing something extreme with parallel process events.

The same should apply to consoles, but as the people above I don't have the switch or any experience with makers on console.
So it might be something else on your switch - but I would still start by looking through your events and especially the parallel process events.
Well this is my most recurring event (so far) (I'd transferred everything I'd already done to PC because of the lag, i was able to screenshot it.) It's basically the ledge jump from pokemon. Unless there's a different way to code it. (Kinda why I've also been trying to find ways to make the game without plugins, so if I were able to resume work on console, I wouldn't get hung up.)
20231108115233_1.jpg

Also (this is the same on both) Map 1 ( Town A inside) is 60 by 60, not sure how close I can place rooms/separate floors without one appearing where you technically shouldn't be able to see, Map 2 (Town A outside) is 30 by 30, i could probably trim 5 off the width and maybe 7 off the height, Map 3 (Town A library) is 30 by 30, is also where i default the "boat", "ship" and "airship" out of bounds, if I move those to a different map (because I'm not that far into the project yet it's an easy fix)i could trim it down to 15h by 18w, Map 4 (Rt 1) is 29 by 29, could probably stand to remove 3 tiles of width and 2 of height, and going through the events on 4 i have 3 npcs ( 1 sign, 1 treasure, 1 person) and 40 ledge jump events (shown above, and trimmed down to 30 to not jump corners) and map 5, which currently is just a 60 by 60, though on PC i have inns and shops added, as well as a few other npcs. Currently (both projects) I have only 1 Parallel process event, and thats just to check if I'm surfing. I got it from the tutorial from RunTheMC's Create-a-Mechanic Dev Diaries for surf.
That event wouldn't cause lag, even if you had a lot of them. Do you have any parallel events?
Sorry, was editing the post to add more info, seeing as pretty much everything i got on pc was hand copy/pasted from my work on switch.

I'll also follow TheAM-Dol's advice (in the future) if I have any more problems with switch. Bookmarking the website just in case.
Currently (both projects) I have only 1 Parallel process event, and thats just to check if I'm surfing
then please show a screenshot of that event.

even a single parallel process can cause lag if it has a bad logic structure, while you can have a dozen parallels as long as their structures are fine
20231108122608_1.jpg
only 1 Parallel process event, and thats just to check if I'm surfing. I got it from the tutorial from RunTheMC's Create-a-Mechanic Dev Diaries for surf.
Post your surfing event since that's what you said was causing the lag in the first post.

Edit: If you put a wait 10 frames or so at the end that will stop the lag.
yes, that is a bad parallel - because it has no waits.

you don't need to check for surfing sixty times per second. movements are usually enough to be checked ten times, or even less if they are non-critical.
so add a wait(5) or so to the event.
Ironically doesn't lag on PC, though on Switch i do have an additonal Control Variables that I wasn't able to do on PC, which was Region ID=Region number.
Post your surfing event since that's what you said was causing the lag in the first post.
Ironically doesn't lag on PC,
it does create lag even on PC, the PC just has a higher reserve of processing power.
but add enough of these events and even the PC will slow down.

But the wait tells "skip this event for x frames before processing it again", with sixty frames per second the default speed per parallel
yes, that is a bad parallel - because it has no waits.

you don't need to check for surfing sixty times per second. movements are usually enough to be checked ten times, or even less if they are non-critical.
so add a wait(5) or so to the event.
would I put the wait(#) between the Get Info and the If?
would I put the wait(#) between the Get Info and the If?
Put the wait command at the end of the event page
doesn't matter where, as long as it is outside the condition.
easiest places are as first or as last commands, because placing it between commands may distrupt the timing sequence (depends on where exactly and what the event is supposed to do).

I explained what the wait does in my other post above

Original thread: https://forums.rpgmakerweb.com/threads/switch-release-lag-but-whats-the-cause.162746/