Replaced artificial 33ms throttle with yield_now() for scheduler fairness. The openh264 encode time (~24ms at 1080p) is the natural rate limiter. H.264 decode/JPEG re-encode pipeline is back and working.
- commit
- e20bc07fab8484c4e5fa6be11b50e19255f81fb9
- parent
- b80b4c1c130d38353215420ea838b9b30cf44c0d
- author
- dami etoile <dami.etoile@gmail.com>
| M | src-tauri/ | 3 | ++- |
@@ -720,7 +720,8 @@ async fn stream_frames(conn: Connection) -> anyhow::Result<()> {
720720 _ => {}721721 }722722 723- tokio::time::sleep(Duration::from_millis(33)).await;723+ // Backpressure: yield to scheduler, no artificial throttle724+ tokio::task::yield_now().await;724725 }725726 726727 Ok(())