Address CodeRabbit feedback on VNC server

This commit is contained in:
Viktor Liu
2026-05-20 17:16:45 +02:00
parent 17359cdc1e
commit 640a267556
14 changed files with 187 additions and 69 deletions

View File

@@ -171,7 +171,11 @@ func (s *session) applyBackpressure() float64 {
base := jpegQualityForLevel(tight.qualityLevel)
if base == 0 {
base = tightJPEGQuality
// No client-negotiated quality; let tightQualityFor pick the
// area-based default and skip backpressure adjustments that
// would otherwise lock in a wrong starting point.
tight.jpegQualityOverride = 0
return frac
}
q := base
if frac > backpressureRampStart {