Major frame dip when running weather effects?

Alright, so a few days ago I posted a detailing a weather system that I wanted to use. I was able to get the system working perfectly and everything was running fine. I decided to make the weather system a bit more immersive and used a BGS for rain falling on the ground that activates when it is raining in my game.

My issue is that I lose a major amount of frames when this BGS is playing and I have no idea why. I believe the file is 3 seconds long and it is an ogg file, so it is compatible and running properly. The sound plays perfectly in game, however, the rain animation (default for now) slows way down and when moving in the game there is major frame loss. Has anybody run into this problem, and if so, do you know how to fix it?

I should also note that during this weather event it is keeping track of a single variable and is playing my background music for the town. Thanks for any help.
Below are the 2 main events that I am using for this. I'm wondering if maybe my eventing is a bit scuffed and maybe that is my issue.
Valla.png
weather.png
your common event parallel process contains no waitframes, that makes it run sixty times per second and add to the lag you experience.

however in case that does not solve the problem, you need to know that lag is additive and the last effect you notice is rarely the only effect. Like with alcohol claiming only the last beer to be bad and the dozen beers before that to be no problem.

so if adding waits to the loop doesn't reduce the lag (waits for parallel processes mean "skip this for x frames), then you need to seek the other causes of lag...

EDIT: your map event contains a duble loop - that is useless, parallel processes automatically loop as well. remove the loop command there.
your common event parallel process contains no waitframes, that makes it run sixty times per second and add to the lag you experience.

however in case that does not solve the problem, you need to know that lag is additive and the last effect you notice is rarely the only effect. Like with alcohol claiming only the last beer to be bad and the dozen beers before that to be no problem.

so if adding waits to the loop doesn't reduce the lag (waits for parallel processes mean "skip this for x frames), then you need to seek the other causes of lag...

EDIT: your map event contains a duble loop - that is useless, parallel processes automatically loop as well. remove the loop command there.
Thank you so much, I didn't know why I ran a loop inside the parallel process for my map event. Also adding a 60 frame wait for both the "if" and "else" worked perfectly. Appreciate it!
wait 60 might be a bit much as that also is the maximum delay for changes.

for a weather system a delay of one second doesn't really matter, but if doing more time-critical systems you might want to test how far you can reduce the wait without lag. Sometimes (rarely) wait 5 is enough, sometimes you'll want wait 10 or wait 30...
wait 60 might be a bit much as that also is the maximum delay for changes.

for a weather system a delay of one second doesn't really matter, but if doing more time-critical systems you might want to test how far you can reduce the wait without lag. Sometimes (rarely) wait 5 is enough, sometimes you'll want wait 10 or wait 30...
Gotcha, Wait 5 worked perfectly actually. Though once my other events are in I'm guessing I may have to tinker with it a bit more as I haven't added all the events in this map yet. Plus this weather effect can happen on most maps of the game. So I will be doing a lot of testing. Thanks a lot!
Double-post notice: SoulBlade32

You don't need to add a wait for both the IF and the ELSE. You can just put it right at the top of the event so it will be the first thing done on each iteration.

Is this issue resolved for you now? If so, please report your first post and let us know, and we'll close the thread.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/major-frame-dip-when-running-weather-effects.131340/