Skip to content

Deal with cancelled draws from wgpu#221

Merged
almarklein merged 2 commits into
mainfrom
draw-cancelled
Jul 3, 2026
Merged

Deal with cancelled draws from wgpu#221
almarklein merged 2 commits into
mainfrom
draw-cancelled

Conversation

@almarklein

@almarklein almarklein commented Jul 2, 2026

Copy link
Copy Markdown
Member

wgpu-py will soon raise wgpu.DrawCancelled, see pygfx/wgpu-py#820.

When this happens, the window is likely hidden/occluded (although in less likely event can be in another broken state). The best we can do is skip the frame.

@almarklein
almarklein merged commit 1a25f43 into main Jul 3, 2026
21 checks passed
@almarklein
almarklein deleted the draw-cancelled branch July 3, 2026 10:05
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