Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

perf(producer): skip fully occluded leading DOM capture in HDR layered compositor

Abierto
#5,004 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Monster-GM ya está trabajando en esto.

Desde el 4/10/2026.

  • #5034 de @Monster-GM — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start by tracing the normal HDR layered compositor and its existing HDR video read/blit path on main; the issue does not name specific files or tests. Add regression coverage for the listed eligible and fallback layer plans, including preservation of the upper DOM layer. Done means the optimized and legacy paths are pixel-identical, with failures replaying once through the legacy path.

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

Descripción

Summary

The normal HDR layered compositor can produce a layer plan such as:

DOM → HDR video → DOM

Both DOM groups are currently rasterized independently. When the first paintable layer above the leading DOM group is an opaque native HDR video that covers the complete output canvas, the lower DOM raster cannot contribute a pixel to the final frame.

Avoiding that capture removes one full-page screenshot, PNG decode, and RGBA-to-RGB48 blit per eligible frame.

Affected version

Observed in HyperFrames v0.8.114 (01c6f6004a00ecfa6e77ab4025b47a46a5e925fc). Please confirm the current compositor topology on main.

Safety requirements

Eligibility should be conservative and based on existing stacking and geometry state:

  • the first composite layer is DOM;
  • the first paintable layer above it is a native HDR video;
  • opacity is effectively 1 and the video is active;
  • x/y are the frame origin and paint/layout dimensions cover the full output;
  • the source frame dimensions and raw-frame size are compatible with a full-frame blit;
  • clip is absent or exactly full bounds;
  • border radius is zero;
  • transform is absent or identity.

HDR images, transitions, elementFilter captures, SDR capture, partial clips, non-identity transforms, and ambiguous geometry should remain on the legacy path.

Fail-safe behavior

Geometry alone is insufficient. The lower DOM capture should be deferred until the eligible HDR frame has actually been read and blitted successfully.

The HDR video blit can expose a small typed result such as blitted | skipped | failed. Only blitted permits dropping the deferred DOM layer. On skipped, failed, incomplete reads, or exceptions, clear the uncommitted canvas and replay that frame once through the existing path with the optimization disabled.

Validation

Regression tests should cover:

  • successful DOM → opaque full-frame HDR video → DOM;
  • opacity below the opaque threshold;
  • smaller dimensions or non-zero x/y;
  • border radius, non-identity transform, and partial clip;
  • an exact full-bounds clip;
  • HDR read/blit failure and one-pass legacy fallback;
  • transition/elementFilter exclusion;
  • preservation of the upper DOM layer.

Output should be pixel-identical to the legacy compositor for eligible and fallback cases.

Lenguaje dominante
TypeScript
Estrellas
54.1k
Forks
4.9k
Merge medio
7 h 2 min
PR fusionados (30 d)
782

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 heygen-com/hyperframes

Todos los issues de heygen-com/hyperframes

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.