Skip to content

Commit

Permalink
#3337 when automatically switching to lossless, lower the speed to co…
Browse files Browse the repository at this point in the history
…mpensate for the extra bandwidth used
  • Loading branch information
totaam committed Nov 9, 2021
1 parent ee103a2 commit 43ff03b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/server/window/window_source.py
Expand Up @@ -1827,6 +1827,8 @@ def get_encoding(w, h):
lossless_q = self._lossless_threshold_base + self._lossless_threshold_pixel_boost * w*h // (ww*wh)
if quality>=lossless_q:
quality = 100
#lossless uses more bandwidth, try harder to compress it:
speed = max(self._fixed_min_speed, speed-30)
return get_best_encoding(w, h, speed, quality, coding)

def send_full_window_update(cause):
Expand Down

0 comments on commit 43ff03b

Please sign in to comment.