Skip to content

Commit

Permalink
#2090 enable batching by default
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21267 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 2, 2019
1 parent 046c122 commit 481b19d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
SLOW_SEND_THRESHOLD = envint("XPRA_SLOW_SEND_THRESHOLD", 20*1000*1000)

HAS_ALPHA = envbool("XPRA_ALPHA", True)
FORCE_BATCH = envint("XPRA_FORCE_BATCH", False)
FORCE_BATCH = envint("XPRA_FORCE_BATCH", True)
STRICT_MODE = envint("XPRA_ENCODING_STRICT_MODE", False)
MERGE_REGIONS = envbool("XPRA_MERGE_REGIONS", True)
INTEGRITY_HASH = envint("XPRA_INTEGRITY_HASH", False)
Expand Down Expand Up @@ -1306,7 +1306,9 @@ def damage_now():
self.expire_timer = self.timeout_add(delay, self.expire_delayed_region, delay)

def must_batch(self, delay):
if FORCE_BATCH or self.batch_config.always or delay>self.batch_config.min_delay or self.bandwidth_limit>0:
if FORCE_BATCH:
return True
if self.batch_config.always or delay>self.batch_config.min_delay or self.bandwidth_limit>0:
return True
now = monotonic_time()
gs = self.global_statistics
Expand Down

0 comments on commit 481b19d

Please sign in to comment.