Describe the bug
Non-integer framerates like 23.976 are truncated down to 23, etc. This occurs because there is a wrong calculation in the "should send frame" function. It casts self.fps to u64 before performing the division:
1_000_000_000u64 / fps as u64
should be
(1_000_000_000f64 / fps) as u64
Describe the bug Non-integer framerates like 23.976 are truncated down to 23, etc. This occurs because there is a wrong calculation in the "should send frame" function. It casts self.fps to u64 before performing the division:
1_000_000_000u64 / fps as u64
should be(1_000_000_000f64 / fps) as u64