Event sounds bug out and create lag

So I have 3 parallel process events that are supposed to give you radiation when entering different zones. Each one has a different sound, and gives different amounts. They work fine when by themselves, but if I try to run more than one the sounds fluctuate between not working and speeding up. The framerate also drops a huge amount. (Ignore the fact that two of them show action button activation, they are supposed to all be parallel processes.)

Spoiler: Event Screenshots
Screenshot (489).png
Screenshot (490).png
Screenshot (491).png
Not sure about this but have you tried adding some wait counter?
I just did, and it solved the framerate issue but not the sound one. The sounds are now really choppy.
You can't run more than 1 BGS at a time. You have to make sure to fadeout the previous BGS before using a new one in order to avoid those issues.
Why not put all of them in a single parallel process? There is no reason for them in a separate process. You can do all of them in a single process.

Also to prevent lag, only "activate" the event when the player region ID is changed.
To illustrate, you're going to do this (I'm too lazy to set up the event, so I'm giving you the pseudocode)

-> Check if the player region ID is changed
And by this, I don't mean to check if the player is equal to something. But do it like this

- Decide which variable ID to hold the player's region ID
- Check if the variable is not equal with the player's region ID
- If not equal, perform BGS change
- Re-Assign player's region ID to that variable
- Put all the region id based damage below that

This way, play BGS only happens ONCE when the region ID is changed. Not all times.
Also add a Wait 5-10 Frames at the very beginning of the parallel process event. Your player is not going to change regions 60 times a second.
Why not just make it all one event and check the players position with variables?
Actually, if these events are all on the same map and all have a parallel process trigger, it's never going to work the way you want.

The first event will fadeout BGM if the player is not on region 1.
The second will fadeout BGM if the player is not on region 2.
The third will fadeout BGM if the player is not on region 3.

As the player can only be on one region at a time only one of these events can ever be true, and the other two will be false. That means one event is always going to be playing BGM, and the other two events are going to be fading it out. This is why it's choppy.

If they are all on the same map, you probably want to do something like this:

Code:
wait 5 frames
if player region is different to the last player region (will need to use a variable to store the last player region)
  if player region is 1
    play BGM 1
    do other stuff
  else
    if player region is 2
      play BGM 2
      do other stuff
    else
      if player region is 3
        play BGM 3
        do other stuff
      else
        fadeout BGM
      end
    end
  end
end
@Shaz
Your code block works perfectly, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/event-sounds-bug-out-and-create-lag.125105/