Merge pull request #10564 from birarda/bug/content-loading-always

fix progress bar / stats reference to pending transfer count
This commit is contained in:
Chris Collins 2017-05-26 15:29:06 -07:00 committed by GitHub
commit fd3b6cdf1a
2 changed files with 8 additions and 9 deletions

View file

@ -20,9 +20,9 @@ Item {
id: stats id: stats
spacing: 8 spacing: 8
anchors.fill:parent anchors.fill:parent
property var config: Render.getConfig("Stats") property var config: Render.getConfig("Stats")
function evalEvenHeight() { function evalEvenHeight() {
// Why do we have to do that manually ? cannot seem to find a qml / anchor / layout mode that does that ? // Why do we have to do that manually ? cannot seem to find a qml / anchor / layout mode that does that ?
return (height - spacing * (children.length - 1)) / children.length return (height - spacing * (children.length - 1)) / children.length
@ -81,7 +81,7 @@ Item {
color: "#1AC567" color: "#1AC567"
}, },
{ {
prop: "textureGPUTransferCount", prop: "texturePendingGPUTransferCount",
label: "Transfer", label: "Transfer",
color: "#9495FF" color: "#9495FF"
} }
@ -158,7 +158,7 @@ Item {
} }
] ]
} }
PlotPerf { PlotPerf {
title: "State Changes" title: "State Changes"
height: parent.evalEvenHeight() height: parent.evalEvenHeight()
@ -180,7 +180,7 @@ Item {
color: "#1AC567" color: "#1AC567"
} }
] ]
} }
property var drawOpaqueConfig: Render.getConfig("DrawOpaqueDeferred") property var drawOpaqueConfig: Render.getConfig("DrawOpaqueDeferred")
property var drawTransparentConfig: Render.getConfig("DrawTransparentDeferred") property var drawTransparentConfig: Render.getConfig("DrawTransparentDeferred")
@ -211,7 +211,7 @@ Item {
color: "#FED959" color: "#FED959"
} }
] ]
} }
PlotPerf { PlotPerf {
title: "Timing" title: "Timing"
@ -250,4 +250,3 @@ Item {
} }
} }

View file

@ -261,7 +261,7 @@
} }
} }
gpuTextures = Render.getConfig("Stats").textureGPUTransferCount; gpuTextures = Render.getConfig("Stats").texturePendingGPUTransferCount;
// Update state // Update state
if (!visible) { // Not visible because no recent downloads if (!visible) { // Not visible because no recent downloads
@ -290,7 +290,7 @@
}, FADE_OUT_WAIT); }, FADE_OUT_WAIT);
} }
} else { } else {
if (displayProgress < 100 || gpuTextures > 0) { // Was finished and waiting to fade out but have resumed so if (displayProgress < 100 || gpuTextures > 0) { // Was finished and waiting to fade out but have resumed so
// don't fade out // don't fade out
Script.clearInterval(fadeWaitTimer); Script.clearInterval(fadeWaitTimer);
fadeWaitTimer = null; fadeWaitTimer = null;