mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +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) {
|
||||
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;
|
||||
last = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user