Skip to content

Commit 8f9f3b2

Browse files
fix: correct DegradationPreference docstrings to match WebRTC semantics
The docstrings for MaintainFramerate and MaintainResolution were swapped. Per the W3C WebRTC spec: - MaintainFramerate: Degrade resolution to maintain framerate (prioritize smooth motion) - MaintainResolution: Degrade framerate to maintain resolution (prioritize image clarity) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 641ae21 commit 8f9f3b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Runtime/Scripts/Core/Room.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public enum DegradationPreference
3030
{
3131
/// <summary>Balance between framerate and resolution degradation.</summary>
3232
Balanced = 0,
33-
/// <summary>Degrade framerate to maintain resolution.</summary>
33+
/// <summary>Degrade resolution to maintain framerate (prioritize smooth motion).</summary>
3434
MaintainFramerate = 1,
35-
/// <summary>Degrade resolution to maintain framerate (drop frames to keep clarity).</summary>
35+
/// <summary>Degrade framerate to maintain resolution (prioritize image clarity).</summary>
3636
MaintainResolution = 2,
3737
/// <summary>
3838
/// Maintain both framerate and resolution. Frames may be dropped before encoding

0 commit comments

Comments
 (0)