fix reference to pending transfer count for progress/stats

This commit is contained in:
Stephen Birarda 2017-05-26 14:37:24 -07:00
parent 07440e325f
commit 6c2758e4ea
2 changed files with 8 additions and 9 deletions

View file

@ -20,9 +20,9 @@ Item {
id: stats
spacing: 8
anchors.fill:parent
property var config: Render.getConfig("Stats")
function evalEvenHeight() {
// 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
@ -81,7 +81,7 @@ Item {
color: "#1AC567"
},
{
prop: "textureGPUTransferCount",
prop: "texturePendingGPUTransferCount",
label: "Transfer",
color: "#9495FF"
}
@ -158,7 +158,7 @@ Item {
}
]
}
PlotPerf {
title: "State Changes"
height: parent.evalEvenHeight()
@ -180,7 +180,7 @@ Item {
color: "#1AC567"
}
]
}
}
property var drawOpaqueConfig: Render.getConfig("DrawOpaqueDeferred")
property var drawTransparentConfig: Render.getConfig("DrawTransparentDeferred")
@ -211,7 +211,7 @@ Item {
color: "#FED959"
}
]
}
}
PlotPerf {
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
if (!visible) { // Not visible because no recent downloads
@ -290,7 +290,7 @@
}, FADE_OUT_WAIT);
}
} 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
Script.clearInterval(fadeWaitTimer);
fadeWaitTimer = null;