mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-25 02:57:24 +00:00
Add fullscreen FPS info
This commit is contained in:
parent
240147f8f1
commit
97a0d0a4c5
1 changed files with 8 additions and 0 deletions
|
|
@ -569,6 +569,7 @@ api.transport = {
|
|||
// stats
|
||||
let WEBRTC_STATS_RTT;
|
||||
let VIDEO_BITRATE;
|
||||
let VIDEO_FRAMERATE;
|
||||
let GET_V_CODEC, SET_CODEC;
|
||||
|
||||
const bitrate = (() => {
|
||||
|
|
@ -608,6 +609,12 @@ stats.modules = [
|
|||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
mui: stats.mui("", "0", false, () => " fps"),
|
||||
init() {
|
||||
VIDEO_FRAMERATE = (v) => (this.val = v);
|
||||
},
|
||||
},
|
||||
{
|
||||
mui: stats.mui("", "", false, () => " kb/s", "stats-bitrate"),
|
||||
init() {
|
||||
|
|
@ -634,6 +641,7 @@ stats.modules = [
|
|||
VIDEO_BITRATE(
|
||||
bitrate(report.timestamp, report.bytesReceived),
|
||||
);
|
||||
VIDEO_FRAMERATE(report.framesPerSecond);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue