Skip to content

Comments

Handle transient WGPU SurfaceErrors without panicking#46

Merged
nicoburns merged 3 commits intomainfrom
wgpu-surface-error-handling
Feb 17, 2026
Merged

Handle transient WGPU SurfaceErrors without panicking#46
nicoburns merged 3 commits intomainfrom
wgpu-surface-error-handling

Conversation

@nicoburns
Copy link
Contributor

@nicoburns nicoburns commented Feb 17, 2026

Some of the SurfaceErrors reported by surface.get_current_texture() are transient/temporary. We should react to these errors by skipping the current frame and then continuing rather than panicking and bringing down the whole process.

Signed-off-by: Nico Burns <nico@nicoburns.com>
Signed-off-by: Nico Burns <nico@nicoburns.com>
Signed-off-by: Nico Burns <nico@nicoburns.com>
@nicoburns nicoburns marked this pull request as ready for review February 17, 2026 12:47
@nicoburns nicoburns merged commit 0691c2d into main Feb 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant