-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change FBMjpegScalingFactor make device slow #520
Comments
Possibly the cause is inside XCTest API: WebDriverAgent/WebDriverAgentLib/Utilities/FBMjpegServer.m Lines 102 to 106 in a182489
The end to generate the screenshot is by |
Generally Mjpeg coming out of WDA is quite slow because it fetches the screenshot at full resolution size. The resizing code isn't carefully written to use hardware acceleration to do the resizing, and so it takes a bit longer than it should. There are a few ways to get better video from an iOS device:
Since this project is just an Xctest, its options are limited. The only thing that could be done to improve the speed is to optimize how the resizing is done a bit better. I'd also recommend not using Mjpeg, and not using Http. My fork of WDA uses NNG instead to reduce overhead slightly. That is, though, a minor optimization and barely makes a difference. |
is it possible to buffer vide stream in h264 format to increase performance. mjpeg seems to be bit heavy. apple supports H.264/AAC MOV encoding without effecting performance. using Replaykit or AVFoundation is not stable as current wda video buffer, which is loads faster comparatively. |
I change FBMjpegScalingFactor to 60 then device seem to be slower than normal
Environment:
The text was updated successfully, but these errors were encountered: