Skip to content

Conversation

@almarklein
Copy link
Member

High time we switch ... so pygfx/wgpu-py#627 can move forward.

  • Replace from wgpu.gui import WgpuCanvas, run with from rendercanvas import RenderCanvas, loop
  • Replace run() with loop.run()
  • Examples that use Qt required a bit more care.
  • Use update_mode='fastest' where fps=-1 was used. See Disallow max_fps=-1 rendercanvas#99
  • I tested quite a lot (but not all) examples. In the majority of examples the change is trivial.

@almarklein almarklein requested a review from Korijn as a code owner June 30, 2025 09:55
@Korijn
Copy link
Collaborator

Korijn commented Jun 30, 2025

Require new rendercanvas version maybe?

Korijn
Korijn previously approved these changes Jun 30, 2025
@almarklein
Copy link
Member Author

Oh dear, the validate_text_md example is glitching. It did that in an early stage of #1121, but later the glitch disappeared. I propose that we add a little exception, allowing this example to have more leeway.

@almarklein almarklein merged commit d4ed6c7 into main Jul 1, 2025
13 checks passed
@almarklein almarklein deleted the rendercanvas branch July 1, 2025 08:13
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.

3 participants