YaLTeR / BunnymodXT

Speedrun and TAS tool for Half-Life & friends.
Other
200 stars 38 forks source link

TAS Frame counter #54

Open raider34790 opened 5 years ago

raider34790 commented 5 years ago

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.

YaLTeR commented 5 years ago

how many frames (depending on frametime)

How does the frame count depend on frametime?

raider34790 commented 5 years ago

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

YaLTeR commented 5 years ago

Well, how does the frame count depend on host_framerate?

Matherunner commented 5 years ago

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.