How bad is this parallel process?

Hello guys! I'm using Galv's Disable Dash to have a limited amount of dash and a cooldown before running again.
It works, but I'm wondering if It is bad or it can be improved or done without a parallel process, I'm really a newby here.
Looks like you're draining stamina even if the player isn't moving.
I'm surprised you say it works. In addition to what @SGHarlekin said, as far as I can see you only need to press Shift once and then it will loop until your Stamina has been drained to less than 2. The loop never checks again whether Shift is still being held.

I'm pretty sure there are existing plugins to manage all of this for you.
I'm surprised you say it works. In addition to what @SGHarlekin said, as far as I can see you only need to press Shift once and then it will loop until your Stamina has been drained to less than 2. The loop never checks again whether Shift is still being held.

I'm pretty sure there are existing plugins to manage all of this for you.
Looks like you're draining stamina even if the player isn't moving.
I didn't notice that, but yes it drains stamina even when it doesn't move, maybe it is better if I use a plugin if there are any, thank you guys :')
A parallel process is already a loop, removing the loop lets it continually check if you are holding down Shift by running the entire process again.
I'm surprised you say it works. In addition to what @SGHarlekin said, as far as I can see you only need to press Shift once and then it will loop until your Stamina has been drained to less than 2. The loop never checks again whether Shift is still being held.

I'm pretty sure there are existing plugins to manage all of this for you.
I thought it worked, I was wrong 🙁
There's a plugin called MOG ChronoCT or something that's basically a stamina bar that consumes on dash and autorecovers when you're not dashing. It's just not easy to customize because you have to edit the code to customize it.

Original thread: https://forums.rpgmakerweb.com/threads/how-bad-is-this-parallel-process.172087/