Filmstrip polls delay native commands by ~110 ms each

Abierto
#584 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
44/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
ios, typescript

Línea de trabajo

Start with SCREENCAST_DEFAULTS.pollIntervalMs and the filmstrip polling and capture paths; the issue does not name their files, so locate them in the repository. Compare command and per-action capture timings with polling enabled and disabled on native iOS, then measure the proposed polling interval and screenshot quality options. Done when measurements identify a change that reduces command delay without losing required filmstrip frames.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Follow-up to #583.

Lenguaje dominante
TypeScript
Estrellas
10
Forks
4
Merge medio
1 d 11 h
PR fusionados (30 d)
76

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de webdriverio/devtools

Todos los issues de webdriverio/devtools

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.