I used switch 62 in one of my events and when playtesting it seems to drop 1 FPS the moment it's turned on. It's so bad that the text box takes 3 seconds to disappear. This switch has never been used before and I used the search function to make sure it's used nowhere else. I made an entirely separate event that only turned the switch on so I know it's the switch. My question is why? Using switch 63 works fine.
Turning switch on causes insane lag
RPG Maker MV SupportThen you have a parallel process somewhere that is turned on by that switch. Switches alone cannot do anything, the lag is caused by something that reacts to that switch.
Most likely a parallel process common event (if it happens on every map), but could also be a plugin that is configured to ract to it.
Most likely a parallel process common event (if it happens on every map), but could also be a plugin that is configured to ract to it.
Well it can't be an event because I used the Event Searcher and looked for anything with the switch in it, as I said. If it's a plugin then that opens a whole can of worms. Any switch or variable could be used by a plugin like that and how am I to know? 62 is a very specific number to use. Later on I could run into more issues and have no idea what's causing it. Is there a way to check if a plugin is using switches/variables?
If it is used by a plugin, then that number is set somewhere inside either the plugin properties or in the script itself.
And by the way: the event searcher only searches map events, and then only the control switch commands - it will NOT list uses of switches as conditions either on map event or on common events. I suggest you check there manually.
If you don't find it that way, I suggest you download a text editor that can do text searches around multiple files and search for the number inside the json files with that
And by the way: the event searcher only searches map events, and then only the control switch commands - it will NOT list uses of switches as conditions either on map event or on common events. I suggest you check there manually.
If you don't find it that way, I suggest you download a text editor that can do text searches around multiple files and search for the number inside the json files with that
The event searcher don't look for events page conditions and common even triggers, only for the contents of the events.
Read the plugin instructions before installing it. When a plugin uses switches or variables, it is stated on the instructions, unless the plugin is of poor procedence (and if that is the case, you shouldn't be using it on the first place).
There is no automatic way, you need to open the plugin file and search for it.
That is why, when you add plugins to your game, you MUST look at all the plugin parameters and make sure they're set correctly. This means, if they use switches or variables, to either give them names in the database so you don't accidentally use them somewhere else, or if you've already used them, to allocate (and name) new ones, and change the plugin to use them.
Look through each of your plugins, and through all its parameters, to see if any of them use switches and if 62 is allocated.
I'm with Andar though - sounds like a parallel process to me, common event if it happens on every map. Even though the event searcher SAYS it's not used anywhere, go and take a look through them. It's as easy as looking at each one to see if that switch is used as the trigger. The software is still pretty new and bugs are still being found and fixed - if everything points to a parallel process event, don't assume it's not just because the event searcher tells you it's not - it could be glitchy too. If it walks like a duck, and quacks like a duck ...
After a quick test:
Guess what ... I created a new common event and set it to a parallel process, triggered by switch 1. Then I used the event searcher to tell me what uses switch 1. It gave me no results.
Event Searcher does not search through conditions. That's common event switches, event page switches and variables, troop event conditions, and enemy attack pattern conditions.
Look through each of your plugins, and through all its parameters, to see if any of them use switches and if 62 is allocated.
I'm with Andar though - sounds like a parallel process to me, common event if it happens on every map. Even though the event searcher SAYS it's not used anywhere, go and take a look through them. It's as easy as looking at each one to see if that switch is used as the trigger. The software is still pretty new and bugs are still being found and fixed - if everything points to a parallel process event, don't assume it's not just because the event searcher tells you it's not - it could be glitchy too. If it walks like a duck, and quacks like a duck ...
After a quick test:
Guess what ... I created a new common event and set it to a parallel process, triggered by switch 1. Then I used the event searcher to tell me what uses switch 1. It gave me no results.
Event Searcher does not search through conditions. That's common event switches, event page switches and variables, troop event conditions, and enemy attack pattern conditions.
I found what it was. There was an unnamed blank common event set to auto run using switch 62. It was one of the blank events I use to separate sections of my common events. I have no idea how this happened....
This is a shame, maybe they should make it so? I've foolishly relied on it some already in the past.
This is a shame, maybe they should make it so? I've foolishly relied on it some already in the past.
I sure hope they make it so. It provides no benefit at all the way it is - in fact, it could cause more trouble than good.
Original thread: https://forums.rpgmakerweb.com/threads/turning-switch-on-causes-insane-lag.64235/