mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-05 03:21:40 +00:00
[backend] Fix FPS calculation, display latency in UI (#31)
This commit is contained in:
@@ -79,6 +79,7 @@ export default new Vuex.Store({
|
||||
pipelineResults: [
|
||||
{
|
||||
fps: 0,
|
||||
latency: 0,
|
||||
targets: [{
|
||||
// Available in both 2D and 3D
|
||||
pitch: 0,
|
||||
|
||||
@@ -77,7 +77,8 @@
|
||||
:scale="75"
|
||||
@click="onImageClick"
|
||||
/>
|
||||
<span style=" position: absolute; top: 0.2%; left: 13%;">FPS:{{ parseFloat(fps).toFixed(2) }}</span>
|
||||
<span style=" position: absolute; top: 0.2%; left: 13%;">FPS: {{ parseFloat(fps).toFixed(2) }}</span>
|
||||
<span style=" position: absolute; top: 0.2%; right: 13%;">Latency: {{ parseFloat(latency).toFixed(2) }}ms</span>
|
||||
</div>
|
||||
</v-row>
|
||||
|
||||
@@ -185,6 +186,11 @@
|
||||
get() {
|
||||
return this.$store.getters.currentCameraFPS;
|
||||
}
|
||||
},
|
||||
latency: {
|
||||
get() {
|
||||
return this.$store.getters.currentPipelineResults.latency;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user