Add an experimental Pixi renderer for the canvas - #9509
Draft
kube wants to merge 1 commit into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
kube
force-pushed
the
claude/canvas-pixi-renderer
branch
from
September 3, 2026 23:16
91a9ed7 to
878fd81
Compare
kube
force-pushed
the
claude/canvas-pixi-renderer
branch
from
September 3, 2026 23:32
878fd81 to
0f0e186
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Experimental
Opt-in through the Renderer viewport setting.
Summary
Before this PR, the canvas had one renderer, React Flow. Every node is a DOM element and every hover, selection or playback frame re-renders the React tree, so nets of a thousand nodes stutter during playback.
Adds a Pixi.js renderer behind the canvas contract, chosen from Viewport settings > Renderer. It draws the same nets, tools, settings and playback animation as React Flow on a GPU canvas. Playback animation runs on the Pixi ticker as buffer writes instead of React re-renders.
9509.mp4
Links
Changes
Settings
canvasRendereruser setting with a Renderer row in the viewport settings dialogRenderer shell
PixiCanvasmounts a PixiApplicationinside a DOM host.petrinaut-root, labels from a bitmap font installed from Inter Variable once it has loadedpixi.jsand@pixi/reactadded as dependencies and Vite externalsDrawing
GraphicsandBitmapTextInteraction
Known issues
Next steps
Test coverage
canvas-scene.test.tsandcanvas-viewport.test.ts:How to test