How is speed handled in TPB Wait vs. Active?

How does RPG Maker calculate the speed in which an Actor's TPB gauge fills up in wait vs. active?

I prefer wait, but in my usecase (Visustella A T 😎, the gauge is filling up way too fast in wait compared to active.

WAIT:
TBP_WAIT_2fast.gif


ACTIVE:
TPB_ACTIVE.gif


I'm wondering why there's such a discrepency. I was under the impression that TPB regen was treated the same in both modes, with wait simply adding a pause.

Is that not the case? What's the best way to modify TPB regen in WAIT? I've tried manipulating the actors AGI...but in the above Wait GIF, that's AGI set to 1.
TPB speed is managed via the "reference time". By default the values for this are:
  • Active: 240 frames (4 seconds)
  • Wait: 60 frames (1 second)
I assume Wait mode is faster because otherwise it'd get boring waiting between turns. You could change this with a small plugin, e.g.
JavaScript:
/*:
 * @target MZ
 * @plugindesc Custom TPB reference time.
 */
// Override!
Game_Unit.prototype.tpbReferenceTime = function() {
    return BattleManager.isActiveTpb() ? 240 : 60;  // edit this
};

AGI values modify relative TPB charge rate. Each frame the TPB gauge charges by the battler's TPB acceleration divided by the reference time. Acceleration is equal to:

(1 + sqrt(battler agi)) / (1 + sqrt(highest unbuffed agi from all battlers))
So the battler who has the highest unbuffed AGI value will have a TPB acceleration of 1 without buffs, and will get a turn once every 60|240 frames, depending on the TPB mode.

Wait mode pauses whenever any input window has focus, but Active mode only pauses when selecting an Item/Skill.

(I don't know how VisuStella's ATB system interfaces with this, but that's another question.)
Put more simply- I'm trying to make actor's / Enemy's TPB progress more slowly in wait mode.

I've tried making their agility 1, but for some reason, they still progress
TPB speed is managed via the "reference time". By default the values for this are:
  • Active: 240 frames (4 seconds)
  • Wait: 60 frames (1 second)
I assume Wait mode is faster because otherwise it'd get boring waiting between turns.

AGI values modify relative TPB charge rate. Each frame the TPB gauge charges by the battler's TPB acceleration divided by the reference time. Acceleration is equal to:

(1 + sqrt(battler agi)) / (1 + sqrt(highest unbuffed agi from all battlers))
So the battler who has the highest unbuffed AGI value will have a TPB acceleration of 1 without buffs, and will get a turn once every 60|240 frames, depending on the TPB mode.

Wait mode pauses whenever any input window has focus, but Active mode only pauses when selecting an Item/Skill.

(I don't know how VisuStella's ATB system interfaces with this, but that's another question.)

Funny you replied, because I was just looking into a plugin you wrote! Lol. https://forums.rpgmakerweb.com/index.php?threads/rmmz-time-progress-bar-too-fast.135478/

Of course, unsure about the compatibility with VS' ATB but i'll give it a try.

Alternatively, think it'd be difficult to add the pause that occurs in ACTIVE on item opening to occur on turn start? If I could make the pause happen, I'd effectively recreate the wait mode with the proper speed.

Child of Light's speed is close the active, but it has that wait mechanic.
Oh neat, I forgot I'd written that! Hope it helps~ 😤

Yea, if everyone has 1 AGI, then everyone has the same acceleration and gets turns at exactly the same rate. You need to modify the reference time to actually slow things down.

Original thread: https://forums.rpgmakerweb.com/threads/how-is-speed-handled-in-tpb-wait-vs-active.154169/