tetrio / issues

Report issues and discuss improvements / feature requests around TETR.IO
https://tetr.io
403 stars 21 forks source link

Last 5/10 pieces per second #745

Open kndonlee opened 3 years ago

kndonlee commented 3 years ago

Is your feature request related to a problem? Please describe.

When measuring performance, actions happen in microbursts. It would be informative to understand at what speeds players are microbursting at compared to their aggregate average.

It would be useful to see the PPS calculation on a sliding window of the last N number of pieces rather than the aggregate average to understand the bursting speed dynamics of gameplay.

Observers in lobbies can see how players and competitors shift in speed throughout game play.

Values generated here can be sampled and be graphed on a PPS/Time_elapsed X/Y graph during game play and could be a good idea to make additional metrics available for supporters.

Describe the solution you'd like

Similar to how Linux Load averages show 3 numbers of load averages from the 1/5/15 minutes, having the PPS dynamically display last 5/10/total PPS rate would be informative.

Currently it shows:

Pieces
1.08/S 

Desired:

Pieces (5/10/Total)
1.75 / 1.53 / 1.08 / S

Potential implementation of LTPPS

$number_of_pieces = 10
$number_of_pieces / ($current_millis_since_game_start - $tenth_piece_millis) = $last_ten_pieces_per_second
o5k commented 3 years ago

Actually, the LPPS already shows up in 40L replays, in the progress bar in the replay viewer. That said, this is actually quite a good suggestion considering I just added custom counters to the dev branch, so expect this for 6.1.0