Suggestion: allow to reduce size of screenshots to increase framerate
The condition is that the bottle neck is the ADB transfer rate or the on-device compression rate.
That would also reduce latency which can enable using MonkeyRemote via ADB over WiFi.
I tried to explore if the screenshot resolution is configurable but nothing found yet. Some resources:
- https://developer.android.com/studio/test/monkeyrunner/MonkeyDevice
- https://developer.android.com/studio/test/monkeyrunner/MonkeyImage
I had a quick look into the sources and unfortunately there is no easy way to implement this in the current way MonkeyRemote is working.
The chimpchat service ultimately uses the function getFrameBuffer from the class AdbHelper inside ddmlib. The function sends the framebuffer: command over ADB to the device and the the device responds with the complete buffer. I would have to find a way to preprocess the data on the device to fasten up the refresh rate.
Thanks a lot for the analysis down to the source code.
So that would raise a lot the complexity of the program. I hope there will be a solution at some point.
Maybe with an USB 3.0 or USB C phone and a 3.0 cable that's not a issue. I hope to have the occasion to check that.