Added reprojection ratio to statistics page.

This commit is contained in:
2017-02-11 23:54:55 +01:00
parent 9b05d7ffd4
commit 22af8b9633
5 changed files with 110 additions and 45 deletions
+13
View File
@@ -253,6 +253,18 @@ MyStackViewPage {
}
}
RowLayout {
MyText {
text: "Reprojection Ratio:"
}
MyText {
id: summaryTotalRatioText
Layout.fillWidth: true
horizontalAlignment: Text.AlignRight
text: "0"
}
}
Item {
Layout.fillHeight: true
Layout.fillWidth: true
@@ -434,6 +446,7 @@ MyStackViewPage {
summaryDroppedFramesText.text = StatisticsTabController.droppedFrames
summaryReprojectedFramesText.text = StatisticsTabController.reprojectedFrames
summaryTimedOutText.text = StatisticsTabController.timedOut
summaryTotalRatioText.text = (StatisticsTabController.totalReprojectedRatio*100.0).toFixed(1) + "%"
}
Timer {
+40
View File
@@ -95,6 +95,25 @@ MyStackViewPage {
columns: 3
Layout.topMargin: 32
MyText {
text: "Presented Frames:"
}
MyText {
id: statsPresentedFramesText
text: "000"
Layout.fillWidth: true
horizontalAlignment: Text.AlignRight
Layout.rightMargin: 10
}
MyPushButton {
text: "Reset"
onClicked: {
StatisticsTabController.presentedFramesResetClicked()
}
}
MyText {
text: "Dropped Frames:"
}
@@ -151,6 +170,25 @@ MyStackViewPage {
StatisticsTabController.timedOutResetClicked()
}
}
MyText {
text: "Reprojection Ratio:"
}
MyText {
id: statstotalRatioText
text: "0.0"
Layout.fillWidth: true
horizontalAlignment: Text.AlignRight
Layout.rightMargin: 10
}
MyPushButton {
text: "Reset"
onClicked: {
StatisticsTabController.totalRatioResetClicked()
}
}
}
Item {
Layout.fillHeight: true
@@ -166,9 +204,11 @@ MyStackViewPage {
}
statsLeftControllerSpeedText.text = " " + StatisticsTabController.leftControllerMaxSpeed.toFixed(1) + " m/s"
statsRightControllerSpeedText.text = " " + StatisticsTabController.rightControllerMaxSpeed.toFixed(1) + " m/s"
statsPresentedFramesText.text = StatisticsTabController.presentedFrames
statsDroppedFramesText.text = StatisticsTabController.droppedFrames
statsReprojectionFramesText.text = StatisticsTabController.reprojectedFrames
statsTimedOutText.text = StatisticsTabController.timedOut
statstotalRatioText.text = (StatisticsTabController.totalReprojectedRatio*100.0).toFixed(1) + "%"
}
Timer {