1

I'm working on an application that screen captures a monitor in real-time, encodes it, sends it over ethernet, decodes it, then displays that monitor in an application.

So I put the decoder application on the same monitor that is being captured. I then open a timer application and put it next to the decoder application. I can then start the timer and see the latency between main instance of the timer and the timer within the application.

What's weird is that if I take a picture of the monitor with a camera, I get one latency measurement (almost always ~100ms) but if I take a Print Screen of the monitor, the latency between the two is much lower (~30-60ms).

Why is that? How does Print Screen work? Why would it result in 40+ ms difference? Which latency measurement should I trust?

4

1 回答 1

-1

Print Screen 将屏幕截图保存到剪贴板,该剪贴板存储在您的 RAM(计算机中的最高速度存储系统)中,而您正在执行的操作可能会将屏幕截图数据写入您的 HDD/SSD,然后再次读取它以通过 Internet 发送,这需要更长的时间来完成。

于 2020-05-28T23:53:39.713 回答