mu-zero-HYPERLOOP / canzero

Control Panel of Mu-Zero Hyperloop Season 4
https://mu-zero.de
6 stars 0 forks source link

Filter delta_time in the Trace window #43

Closed kistenklaus closed 8 months ago

kistenklaus commented 10 months ago

The delta_time is super noisy right now, but we can expect the frames especially from streams to have consistant delta_times.

Because we batch messages together anyway one idea should be to calculate a moving average across the delta_time and send the filtered delta_time to the view!

Another alternative in my opinion, slightly better, would be to calculate an average across the delta_times that have been accumulated for a frame since the last notify to the view. This would however require a more complex data structure of the trace object

kistenklaus commented 8 months ago

mabye it's best to wait if it is actually required!

kistenklaus commented 8 months ago

stupid if delta_time should be accurate

kistenklaus commented 8 months ago

Maybe a wontfix. Please discuss @NiklasHeneka @arrowtip @Nico4899

NiklasHeneka commented 8 months ago

Close it as won't fix and wait. If we need it we can still reopen it.

kistenklaus commented 8 months ago

yep agree with that @NiklasHeneka