plafer / Tissue.jl

Framework for building computational graphs that process any real time data source.
https://plafer.github.io/Tissue.jl/stable/
MIT License
2 stars 1 forks source link

Flow limiter: source calculator execution time should be subtracted from fps #13

Open plafer opened 3 years ago

plafer commented 3 years ago

The idea is that if it takes 10ms to generate a packet, then we should start generating the packet 10ms in advance so that the data is ready for when the graph is ready to process it.

To implement this:

  1. We currently don't gather runtime statistics for the generator calculator. We need to do that. This might also remove some complexity in the code, where the generator calculator wouldn't be as much of a special case anymore.
  2. in evaluate_packet_period(graph), we should subtract the source calculator's exec_time from the new source period before setting it.