mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 14:22:00 +00:00
Show latency of video
This commit is contained in:
@@ -32,7 +32,8 @@ public abstract class AbstractVideoRenderer implements VideoDecoderRenderer {
|
|||||||
|
|
||||||
if (System.currentTimeMillis()>last+2000) {
|
if (System.currentTimeMillis()>last+2000) {
|
||||||
int bitrate = (dataSize/2)/1024;
|
int bitrate = (dataSize/2)/1024;
|
||||||
System.out.println("Video " + bitrate + "kB/s");
|
long latency = System.currentTimeMillis()-decodeUnit.getReceiveTimestamp();
|
||||||
|
System.out.println("Video " + bitrate + "kB/s " + latency + "ms");
|
||||||
dataSize = 0;
|
dataSize = 0;
|
||||||
last = System.currentTimeMillis();
|
last = System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user