Fix rotation counter stats during rotation drag

This commit is contained in:
Kung-vr
2019-01-24 00:58:15 +09:00
parent ec0d35bf0d
commit 499a0e3ede
5 changed files with 97 additions and 127 deletions
+2 -2
View File
@@ -489,9 +489,9 @@ MyStackViewPage {
function updateStatistics() {
var rotations = StatisticsTabController.hmdRotations
if (rotations > 0) {
summaryHmdRotationsText.text = rotations.toFixed(1) + " CCW"
summaryHmdRotationsText.text = rotations.toFixed(2) + " CCW"
} else {
summaryHmdRotationsText.text = -rotations.toFixed(1) + " CW"
summaryHmdRotationsText.text = -rotations.toFixed(2) + " CW"
}
summaryDroppedFramesText.text = StatisticsTabController.droppedFrames
summaryReprojectedFramesText.text = StatisticsTabController.reprojectedFrames
+2 -2
View File
@@ -198,9 +198,9 @@ MyStackViewPage {
statsHmdMovedText.text = StatisticsTabController.hmdDistanceMoved.toFixed(1) + " m"
var rotations = StatisticsTabController.hmdRotations
if (rotations > 0) {
statsHmdRotationText.text = rotations.toFixed(1) + " CCW"
statsHmdRotationText.text = rotations.toFixed(2) + " CCW"
} else {
statsHmdRotationText.text = -rotations.toFixed(1) + " CW"
statsHmdRotationText.text = -rotations.toFixed(2) + " CW"
}
statsLeftControllerSpeedText.text = " " + StatisticsTabController.leftControllerMaxSpeed.toFixed(1) + " m/s"
statsRightControllerSpeedText.text = " " + StatisticsTabController.rightControllerMaxSpeed.toFixed(1) + " m/s"