3 ms·
Quick math on blitting pixels: - lets assume 1920x1080: 2073600 pixels. - 4 bytes a pixel = 2073600 * 4 = 8294400 = 8.2 MB / frame. - 8.2 MB frame * 60 fps =
by refulgentis 3y ago
Quick math on blitting pixels:
- lets assume 1920x1080: 2073600 pixels.
- 4 bytes a pixel = 2073600 * 4 = 8294400 = 8.2 MB / frame.
- 8.2 MB frame * 60 fps = 480 MB/sec = 3.2 gbps = an order of magnitude higher than even your average techie's internet entire pipe. That's for 1080p. The market baseline for resolution, 4K, 4x's that. 240 fps (market baseline for gamers) adds another 4x. ~50 gbps
As long as you're willing to accept intellectually that _sometimes_ there will be video-like content played, where more than 10% of the pixels change in a frame, you now _need_ to assume some form of compression algorithm is applied on every frame, i.e. do video encoding.
- nine_k 3y agoThis is why VNC has been the solution for this during many years, and still remains so. Scrcpy is different because it does not require you to.install anything on the phone. It uses the built-in debugging tools (which you need to just activate in a few clicks).
- charcircuit 3y ago>Scrcpy is different because it does not require you to.install anything on the phone. When you run scrcpy it copies over the server app which runs on the device. The debugging tools are not used for doing the screen capturing.
- marwis 3y agoDo you know why when using WiFi it has to send data over ADB TCP connection rather than self managed UDP?
- saagarjha 3y agoYep, exactly. Sending video over the network with low latency is not a trivial task. There’s a reason we have video and image formats that do heavy compression and inter-frame analysis to reduce bandwidth.
- jampekka 3y agoWhat share of scrcpy's LoCs do the the actual encoding and decoding to save the bits?