Massive Lag with Two BGS SFX Playing at Same Time

Hey folks,

Is there a known issue with two BGS playing at the same time in VX Ace? I wanted wind and rain to play at the same time. Used the RTP BGS effects stuck them in a parallel process and it damn near soft locked the game. I guess its possible it has something to do with having an open parallel process but I've had a lot more than that running at the same time and never gotten that kind of lag. Any insights? Solutions?
it is more likely a problem with the events themselves than with the audio.

while you can have a dozen correctly designed parallel processes working without lag, a single badly designed parallel process can lag the most powerfull computer to hell.

so a mistake on the parallel process can and will cause this.
Totally. But I made a blank map and just placed two parallel process in it. One is "play BGS rain" and one is "play BGS wind" and it actually does soft lock the game. If I remove the "wind" it works. If I remove the "rain" it actually softlocks on start. Are these not intended to run in parallel? Perhaps it's the length of the "wind" BGS file that makes it more taxing.

I guess my question here would be. If one you more savvy creators needed two BGS to play simultaneously on a map. How you you event it?
If I remove the "wind" it works. If I remove the "rain" it actually softlocks on start
Can you show us the events?
If these events are parallel and do not erase, then they are probably trying to run over and over. Which means it's creating a new instance of the play music as fast as it can process it.
They are, admittedly, really unsophisticated events. But it has worked it other maps. I'm very interested in more savvy ways to event this.

Event 1.PNG
Event 2.PNG
it has worked it other maps.
If it is a sound that is played whenever the player enters the map then that is fine except you need to put an erase event command in there.
Like immediately after? In the same event page?
In the same event page?
yes
You can't play two BGS at the same time, period.

You only have one channel to play BGS, you need to either
- Mix 2 BGS as one file using an audio editor to mix them together
- Use the BGM channel to play two looping audio.
You can't play two BGS at the same time, period.

You only have one channel to play BGS, you need to either
- Mix 2 BGS as one file using an audio editor to mix them together
- Use the BGM channel to play two looping audio.

Ok, yeah. That's kind of what I was wondering. Thanks for that.
In case you're wondering the difference between those 4 channel audio in RPG Maker
BGM
> Loops
> Interrupted by ME
> Has loop point if you want to continue from a certain mark
> You can only play one audio

BGS
> Loops
> Does not get interrupted by ME
> Does not have a loop point
> You can only play one audio

ME
> Interrups BGM, the BGM continues afterward.
> Does not loop
> You can only play one audio

SE
> Does not interrupt anything
> Can play multiple audio
> Does not loop
In case you're wondering the difference between those 4 channel audio in RPG Maker
BGM
> Loops
> Interrupted by ME
> Has loop point if you want to continue from a certain mark
> You can only play one audio

BGS
> Loops
> Does not get interrupted by ME
> Does not have a loop point
> You can only play one audio

ME
> Interrups BGM, the BGM continues afterward.
> Does not loop
> You can only play one audio

SE
> Does not interrupt anything
> Can play multiple audio
> Does not loop

Very useful. Thank you.
really unsophisticated events.
and that is why they are badly designed, always causing lag.
The fact that your computer reserves are high enough to handle that lag does not mean that there is no lag.

any parallel process should have a wait command, because on parallel a wait reduces lag.
the amount of waitframes need to be tested in an individual case - mostly wait(5) or wait(10) should be ok. Too many waits will result in delays on the event execution, too few waits will result in lag.

Original thread: https://forums.rpgmakerweb.com/threads/massive-lag-with-two-bgs-sfx-playing-at-same-time.131982/