The code should:
- Figure out the timestamp when we need to send the next image next =(now + period)
- Load, process, send the current one.
- Sleep for (next - now)
This may help with issue when throughput is off for high frequencies
Update: doing this will not be enough to achieve theoretical max speed streaming - as a period of 0 results in 10 images per second.
We need to read all the test images into memory, convert them appropriately, then send them.
Theoretical maximum would be 50 images per second (for each thread), 3 threads needed to reach 150/second
The code should:
This may help with issue when throughput is off for high frequencies
Update: doing this will not be enough to achieve theoretical max speed streaming - as a period of 0 results in 10 images per second.
We need to read all the test images into memory, convert them appropriately, then send them.
Theoretical maximum would be 50 images per second (for each thread), 3 threads needed to reach 150/second