How do the text codes \| and \. actually work?

I'm having a timing issue involving those text codes. I'm having a line of text appear with \> appearing at the beginning of each line so the subsequent text appears instantaneously (more or less; I know it's not really instant). I have delays within the message using \I and \., with \^ at the end of the message to auto-advance the text. Everything works fine except the actual timing text codes. The whole message should be done within ~13.75 seconds. It actually takes over 17 seconds. The timing is broken into sections of 2 sec, 3.25 sec, 2.5 sec, and 6 sec. All of those separate timings take longer than they should and add up to the total delay. I'm running it in the test mode that you get when you hit Ctrl + R in the event window, so literally nothing else is going on that should be causing lag except playing a BGM. I tested it without the BGM playing and it's exactly the same. So, why do the one-second and 1/4 second delays last longer than intended? Is it my computer lagging or something? Might they actually work fine on someone else's computer?

TLDR: Timing text codes take longer than they should. Why?
I believe it waits in terms of characters, and the characters are displayed in terms of frames per second.
the game doesn't really count seconds, it counts loop ticks.... and those are driven by processor pings, and those are spread across processor load.
if another process lags the game, the count will be off.
I believe it waits in terms of characters, and the characters are displayed in terms of frames per second.
the game doesn't really count seconds, it counts loop ticks.... and those are driven by processor pings, and those are spread across processor load.
if another process lags the game, the count will be off.
Okay, but I made sure I didn't have any other apps open on my computer when I tested it. But other stuff that could be happening in the background could cause lag, I suppose. So is there really any reliable way to time a message with any precision? I mean, four seconds is kind of a lot of error, isn't it?
If you want time precission, you get rid of processor cycles and measure how much time has elapsed since something happened. Or if you already have a process that's measuring time for you in some way (i.e. a sound playback), sometimes you can ask that process for their current time. But it's usually cumbersome to do so.

How to apply that in RPG Maker? You might be able to measure it through the current music position. Something in the line of
JavaScript:
AudioManager._bgmBuffer ? AudioManager._bgmBuffer.seek() : 0
If you want time precission, you get rid of processor cycles and measure how much time has elapsed since something happened. Or if you already have a process that's measuring time for you in some way (i.e. a sound playback), sometimes you can ask that process for their current time. But it's usually cumbersome to do so.
Got it. So, even if I were to adjust it so it timed right in my game, it could still be totally different in another player's game, depending on their processor and all that.

Edit: This is a genuine question, not being sarcastic or anything: Why does RPG Maker have commands in terms of time if they're not accurate? Why not do everything in frames? See, I'm trying to time my dialogue to match the beat of the BGM. But I guess this kind of thing isn't practical with RPG Maker? Anyone have any advice on doing that reliably and simply? Maybe I should ask that one in another thread, actually.
my suggestion: make the whole thing, pick the most relevant and most significant sync issue for reference, and cap the frame rate until that issue is zeroed in to your liking.
you can probably make a common event dealing with pre- and post-cutscene calibrations, and sandwich the scene in between those.
that way, anything related to *directed cutscenes* is capped and tailor-fitted, and everything else (namely, gameplay) is free to wobble.
my suggestion: make the whole thing, pick the most relevant and most significant sync issue for reference, and cap the frame rate until that issue is zeroed in to your liking.
you can probably make a common event dealing with pre- and post-cutscene calibrations, and sandwich the scene in between those.
that way, anything related to *directed cutscenes* is capped and tailor-fitted, and everything else (namely, gameplay) is free to wobble.
That sounds interesting! Except I'm a noob at this kind of thing, so I have no idea how I'd go about any of that. :hswt: Would you mind explaining how to do that? I'd really appreciate the help.
I wouldn't know, because it depends on your setup and general design.
the thing to know, is that whatever you do forwards, you must undo backwards at the end.
put those instructions into two common events, one for leading and one for trailing.
I have a similar structure that locks the controls, resets some variables and adds and removes cinematic framing to the screen. When the sequence ends, it reverts that and restores control.
I wouldn't know, because it depends on your setup and general design.
the thing to know, is that whatever you do forwards, you must undo backwards at the end.
put those instructions into two common events, one for leading and one for trailing.
I have a similar structure that locks the controls, resets some variables and adds and removes cinematic framing to the screen. When the sequence ends, it reverts that and restores control.
My setup and general design? I'm just using RMMZ and some VisuStella plugins. Nothing fancy. You saying you needed to edit the base code or something? Because I've never touched that. Or have you never actually done this thing you suggested in MZ? Perhaps I should ask how to do that in a separate thread.
not necessarily... you can use basic instructions or script calls.
I'm working on Ace, but the procedure should be the same for any version.
it's a matter of structuring the change from loose to tight restriction.... your problem is with synchronization, a restriction can help you fix that, but you can't restrict the whole gameplay or it would appear slow or jumpy, so you have to lead in and out of the restriction, and that procedure should be universal so it can be reused.
therefore, common event.
Right, the scripts are obviously different between Ace and MZ. I just have no idea how to do what you're saying since I have very little experience with script calls in MZ. I'll have to look up script calls that have to do with frame rate.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-the-text-codes-and-actually-work.140355/