Title: [284860] trunk/Source/WebCore
Revision
284860
Author
you...@apple.com
Date
2021-10-26 02:17:13 -0700 (Tue, 26 Oct 2021)

Log Message

Decrease WebRTC latency by pulling data more often
https://bugs.webkit.org/show_bug.cgi?id=232143

Reviewed by Eric Carlson.

We were previously pulling 10 ms chunks by groups of 5, we then redunced to 3.
Let's reduce to 1 to further reduce WebRTC remote audio track latency.
This triggers scheduling of 100 tasks per second instead of 33 previously.

* platform/mediastream/libwebrtc/LibWebRTCAudioModule.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (284859 => 284860)


--- trunk/Source/WebCore/ChangeLog	2021-10-26 08:30:46 UTC (rev 284859)
+++ trunk/Source/WebCore/ChangeLog	2021-10-26 09:17:13 UTC (rev 284860)
@@ -1,3 +1,16 @@
+2021-10-26  Youenn Fablet  <you...@apple.com>
+
+        Decrease WebRTC latency by pulling data more often
+        https://bugs.webkit.org/show_bug.cgi?id=232143
+
+        Reviewed by Eric Carlson.
+
+        We were previously pulling 10 ms chunks by groups of 5, we then redunced to 3.
+        Let's reduce to 1 to further reduce WebRTC remote audio track latency.
+        This triggers scheduling of 100 tasks per second instead of 33 previously.
+
+        * platform/mediastream/libwebrtc/LibWebRTCAudioModule.h:
+
 2021-10-26  Antti Koivisto  <an...@apple.com>
 
         [CSS Cascade Layers] Media queries should be able to affect layer order

Modified: trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCAudioModule.h (284859 => 284860)


--- trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCAudioModule.h	2021-10-26 08:30:46 UTC (rev 284859)
+++ trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCAudioModule.h	2021-10-26 09:17:13 UTC (rev 284860)
@@ -46,7 +46,7 @@
 public:
     LibWebRTCAudioModule();
 
-    static constexpr unsigned PollSamplesCount = 3;
+    static constexpr unsigned PollSamplesCount = 1;
 
 private:
     template<typename U> U shouldNotBeCalled(U value) const
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to