RomaMokych / cxx-courses-2019-03-macos-streamer

coruses project
0 stars 0 forks source link

Too slow screencasting #4

Open TeaBoyy opened 5 years ago

TeaBoyy commented 5 years ago

iPhone receives image, but the framerate is about 1 frame/ 6-8 seconds. I think it's caused by the huge image size (1280x720, ARGB, ~3,5 Mbytes) sent via Wi-Fi Network, so we need some tests with small image size on a real device, and then find a way to attach and use encoder like x264 (because turbo-jpeg compressing/decompressing time is about 30ms for Full HD, and about 20ms for HD )

P.S. Mouse movement is very smooth and fast, and that's approves theory about image size, just because sending 16 bytes (coords) doesn't cause any problems.

TeaBoyy commented 5 years ago

Pinged Mac OS from iPhone using AWN-Guest Wi-Fi network. Ping fluctuates rarely from 3 to 8ms, in most cases it fluctuates from 30 to 250ms, and there are a lot of packets being dropped. But the pros of this network is that it reachable when you not far outside of presentation class and everything is almost good inside class. But even TCP input handling sometimes so slow, so I can't even move my mouse properly, and sometimes it's very very fast without any delays.