Skip to content

Commit

Permalink
#1424 don't queue draw packets - it slows things down
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@15184 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 28, 2017
1 parent 2bc84f3 commit 89849a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function XpraClient(container) {
this.last_ping_echoed_time = 0;
this.server_ok = false;
//packet handling
this.queue_draw_packets = true;
this.queue_draw_packets = false;
this.dQ = [];
this.dQ_interval_id = null;
this.process_interval = 4;
Expand Down Expand Up @@ -1466,7 +1466,6 @@ XpraClient.prototype._process_draw = function(packet, ctx) {
ctx._process_draw_queue(null, ctx);
}, ctx.process_interval);
}

ctx.dQ[ctx.dQ.length] = packet;
} else {
ctx._process_draw_queue(packet, ctx);
Expand All @@ -1476,9 +1475,6 @@ XpraClient.prototype._process_draw = function(packet, ctx) {
XpraClient.prototype._process_draw_queue = function(packet, ctx){
if(!packet && ctx.queue_draw_packets){
packet = ctx.dQ.shift();
if(!packet){
return;
}
}
if(!packet){
//no valid draw packet, likely handle errors for that here
Expand Down

0 comments on commit 89849a4

Please sign in to comment.