Skip to content

'Period' should account for time loading and sending image #3

@benblamey

Description

@benblamey

The code should:

  1. Figure out the timestamp when we need to send the next image next =(now + period)
  2. Load, process, send the current one.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions