You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filmstrip polls delay native commands by ~110 ms each #584
Without a CDP screencast (Safari, Appium), the filmstrip polls a screenshot every 200 ms (SCREENCAST_DEFAULTS.pollIntervalMs). On native iOS each shot holds the driver for about 440 ms, and a command issued during a shot waits behind it.
Measured (BrowserStack, iPhone 15 / iOS 17.5, 3-test spec, 2 runs with the filmstrip on and 2 with filmstrip: false):
Commands that start while a poll is in flight run about 110 ms slower than the same command type with the filmstrip off. That adds 2.4 to 3.2 s per run.
Per-action captures also get slower with polling on: a median of about 800 ms against about 680 ms.
Overall the spec ran about 5 s longer with the filmstrip on (median 43.1 s against 38.1 s).
Options to measure before choosing:
A longer default poll interval on native sessions.
Not polling between commands at all, and relying on the capture screenshots, which are already kept as frames.
A lower XCUITest screenshotQuality for poll shots only. It is untested whether this is faster or whether BrowserStack respects it.
Activity