Hi everyone. I am interested in understanding exactly how long some events take. I'd like to set up an event that starts counting frames when it starts and stops when it ends and returns the number somehow. Is this possible? I am not satisfied with the timer I found, since it can't reliably durations shorter than a second. Same for using save scripts and comparing the save times. Thanks for any help
Counting frames
RPG Maker VXAce SupportUse a common event in parallel, activated by a switch. Make a loop, inside that loop put a control variable command that counts +1. After that put a conditional branch if that same switch is off, break loop and use show message with \v[x], x being the ID of your variable. Turn on the switch at the start of your cut-scene or whatever, turn it off at the end.
If my brain hasn't completely rotted yet, this should work.
Or, you know... Use your cell phone timer.
If my brain hasn't completely rotted yet, this should work.
Or, you know... Use your cell phone timer.
The answer will depend on how many parallel processes are active at any time, and what they are doing.
So a counting event like the one mentioned above WILL slow down whatever event you're checking.
Additionally, some commands are asynchonous to the event starting them (especially movement variants), that can also create timing discrepancies.
It might also help you to follow the link "Bughunting" in my signature, at least to read about the background and behaviour of parallel processes.
So a counting event like the one mentioned above WILL slow down whatever event you're checking.
Additionally, some commands are asynchonous to the event starting them (especially movement variants), that can also create timing discrepancies.
It might also help you to follow the link "Bughunting" in my signature, at least to read about the background and behaviour of parallel processes.
If I understand correctly, even if the game slows down the frames will be counted correctly. Is this correct?
Correct, the processing of frames doesn't skip some just because you've changed FPS via lag.
Thanks to everyone, I think I did it. I found out I can save 1 frame ahah
Original thread: https://forums.rpgmakerweb.com/threads/counting-frames.178645/