Skip to content

Commit

Permalink
don't clamp the speed score
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 16, 2024
1 parent b88e166 commit 38a7b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/server/window/video_scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def get_speed_score(csc_format, csc_spec, encoder_spec, scaling,
#if this encoder's speed is lower than the min_speed
#then it isn't very suitable, discount its score:
mss = (min_speed - speed) // 2
sscore = max(0, sscore - mss)
return max(0, min(100, sscore))
sscore -= mss
return sscore

def get_pipeline_score(enc_in_format, csc_spec, encoder_spec,
width : int, height : int, scaling,
Expand Down

0 comments on commit 38a7b3d

Please sign in to comment.