BunnymodXT icon indicating copy to clipboard operation
BunnymodXT copied to clipboard

TAS Frame counter

Open raider34790 opened this issue 7 years ago • 4 comments

Would it be possible to add a command that counts and displays how many frames (depending on frametime) that have passed since a specified point?

More specifically on any framebulk you could specify when to start counting the frames that have passed

For example: s03lj-----|------|------|0.001|-|-|1|bxt_frame_counter 1

This would be of great help with iteration times on making TASes frame perfect.

For example if we want to take corners, press buttons, interact with NPCs or pick up items on a frame perfect level.

raider34790 avatar Mar 24 '19 21:03 raider34790

how many frames (depending on frametime)

How does the frame count depend on frametime?

YaLTeR avatar Mar 24 '19 22:03 YaLTeR

I must have used the wrong word, what I meant was the host_framerate

raider34790 avatar Mar 24 '19 22:03 raider34790

Well, how does the frame count depend on host_framerate?

YaLTeR avatar Mar 25 '19 05:03 YaLTeR

Why not just use bxt_timer_start to measure the time?

  1. It has a milliseconds precision which is sufficient for most TASes. The vast majority of time you'll be running at or less than 1000 fps.
  2. Frame-level optimisation has a much lower ROI in HL than like Super Mario because of the much higher frame rate.
  3. Counting the number of frames is not as useful because the frame rate can change!
  4. The time is ultimately what matters in the final video.

Matherunner avatar Mar 25 '19 06:03 Matherunner