Skip to content

Commit 7ebae0c

Browse files
committed
VNC-151 Add FPS chart visualization
1 parent c9c9257 commit 7ebae0c

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

app/constants.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,12 @@ export const UI_SETTING_STREAM_MODES = {
2121
export const UI_SETTING_PROFILE_OPTIONS = {
2222
MAIN: 0,
2323
BASELINE: 1,
24-
HIGH: 2,
24+
HIGH: 2
2525
};
26+
27+
export const UI_FPS_CHART = {
28+
WIDTH: 200,
29+
HEIGHT: 50,
30+
MAX_POINTS: 60,
31+
MAX_FPS_VALUE: 120
32+
};

app/styles/base.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,16 @@ select:active {
354354
visibility: hidden;
355355
}
356356

357+
#noVNC_fps_chart {
358+
top: 40px;
359+
left: auto;
360+
right: 0;
361+
position: fixed;
362+
background: #9fa5a2d4;
363+
visibility: hidden;
364+
display: flex;
365+
}
366+
357367
/* ----------------------------------------
358368
* Control Bar
359369
* ----------------------------------------

index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
<div id="noVNC_connection_stats">
7878
Loading statistics...
7979
</div>
80+
<div id="noVNC_fps_chart">
81+
<svg width="200" height="50">
82+
<path id="noVNC_fps_chart_path" fill="#00ffa2d4" stroke="#00ffa2d4" stroke-width="1"/>
83+
</svg>
84+
</div>
8085

8186
<!-- noVNC Control Bar -->
8287
<div id="noVNC_control_bar_anchor" class="noVNC_vcenter">

0 commit comments

Comments
 (0)