Graphics: surface loss and restore in the renderer

Cerrado
#246 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
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp

Línea de trabajo

Start with Renderer.cs:256-284 and trace the surface and swapchain lifecycle through the host event handling and Device.Dispose; the issue also depends on #245. Implement the listed loss, restore, resize, and disposal behavior, then verify that Linux passes 100 minimize and restore cycles without validation errors and that recreation has no busy-wait.

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

Descripción

c:graphics p:high size:L t:feature

Current State

The surface is never destroyed or recreated. Renderer.RecreateSwapChain (Renderer.cs:256-284) busy-waits on window.DoEvents() until the framebuffer is non-zero and throws if formats change; framebufferResized is never set; oldSwapchain is always null; Device.Dispose destroys neither surface nor instance. On Android the surface disappears on every pause.

Tasks

  • On surface lost: wait idle, destroy swapchain and surface, pause ticking, stop rendering
  • On surface restored: recreate surface and swapchain; rebuild render pass and pipelines if the format changed
  • Pass oldSwapchain on recreation; set the resize flag from host events
  • Destroy surface and instance on dispose
  • Desktop stress test: minimize/restore and resize

Acceptance Criteria

  • 100 minimize/restore cycles validation-clean on Linux
  • No busy-wait remains

Related

  • Android plan task A10 · seniority Sr · mergeable now (.NET 10)
  • Depends on: #245
  • Platform roadmap: #100
Lenguaje dominante
C#
Estrellas
1
Forks
1
Merge medio
2 h 10 min
PR fusionados (30 d)
37

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 MASS4ORG/Turian

Todos los issues de MASS4ORG/Turian

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.