timers: fix over repeated connects.
With tight we can't ever use FBU.rects being 0 as an indication of a full frame having been drawn.
This commit is contained in:
parent
e5d5a7d3fd
commit
af1527b276
|
@ -894,6 +894,7 @@ init_msg = function() {
|
||||||
response = response.concat(clientEncodings());
|
response = response.concat(clientEncodings());
|
||||||
response = response.concat(fbUpdateRequests());
|
response = response.concat(fbUpdateRequests());
|
||||||
timing.fbu_rt_start = (new Date()).getTime();
|
timing.fbu_rt_start = (new Date()).getTime();
|
||||||
|
timing.pixels = 0;
|
||||||
ws.send(response);
|
ws.send(response);
|
||||||
|
|
||||||
/* Start pushing/polling */
|
/* Start pushing/polling */
|
||||||
|
@ -1044,7 +1045,7 @@ framebufferUpdate = function() {
|
||||||
timing.pixels += FBU.width * FBU.height;
|
timing.pixels += FBU.width * FBU.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FBU.rects === 0 || (timing.pixels >= (fb_width * fb_height))) {
|
if (timing.pixels >= (fb_width * fb_height)) {
|
||||||
if (((FBU.width === fb_width) &&
|
if (((FBU.width === fb_width) &&
|
||||||
(FBU.height === fb_height)) ||
|
(FBU.height === fb_height)) ||
|
||||||
(timing.fbu_rt_start > 0)) {
|
(timing.fbu_rt_start > 0)) {
|
||||||
|
|
Loading…
Reference in New Issue