MonkeyRemote icon indicating copy to clipboard operation
MonkeyRemote copied to clipboard

Suggestion: allow to reduce size of screenshots to increase framerate

Open tuxayo opened this issue 6 years ago • 3 comments

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.

tuxayo avatar Nov 01 '19 04:11 tuxayo

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

tuxayo avatar Nov 01 '19 04:11 tuxayo

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.

ns130291 avatar Nov 01 '19 20:11 ns130291

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.

tuxayo avatar Dec 21 '19 08:12 tuxayo