How is it this smooth at a thousand nodes?
@c__byrne1.9K followers
126,611 views
34 Comments
Comments from the original post on X (Twitter)

@Orkhan
Yes we do! =) @genieart_inc's canvas handles 10,000+ nodes at 60fps using O(log n) spatial indexing with Quadtree (no amateur O(n²) loops), WebGL/WebGPU rendering pipelines for GPU-accelerated visuals, and viewport culling that only renders what's on screen. Built as a headless-capable orchestration engine with React DOM UI on top - so we get DOM flexibility with GPU performance where it counts. Performance was our top priority too. Ofc inspired by ComfyUI. <3 Early access on December. and goes to public & opensource early 2026. I know you could crash me in few months. Comfy is huge & an amazing team with 100s contributors and $17M budget😂. I'm solo dev and 0$ budget. Open for acquisition - half joke
155 likes

@emrahdma
The real question is, is it really useful showing that many nodes (whatever it is)? Maybe a different UX that doesn't require displaying hundreds of nodes would be better?
19 likes

@sina_sun_
maybe reactflow?
11 likes

@anthonydibe
Lmao what are you even doing with so many nodes??
5 likes

@SimonBitwise
This made me implement culling on nodes in ShipUI Grid are canvas, nodes are html pretty f'cking fast if you ask me Would you mind to share your code?
4 likes

@perilli
I don't have anywhere near that performance (and I have a thousand nodes), tho
2 likes

@KNovljakovic
Now try adding multiple CSS transforms, deeply nested HTML etc. and zooming in/out quickly. It’s complex but nowhere near @framer level of complexity.
2 likes

@symbolsrsymbols
what app is this?
2 likes

@ySebp
...using level of detail rendering and virtualization. Combine that with WebGL and you get as fast as this: That said- Don't do this. Best UX is with much smaller diagrams.
1 like

@Ma_jrz
That you can do something doesn't mean you should do it, thumbnail page with some info about each page probably would be better UX as long as it loads quickly when opening a page or maybe on hover.
1 like

@AtherionDev
That's actually not that many.
1 like

@AndrewPrifer
Did Comfy ever use Rete.js? I seem to remember last time I tried it it was using that for rendering the canvas.
1 like

@AlrikWendel
Zoom in and zoom out is the hardest thing to get performant because it forces re-render of the texture tiles. Do you use will-change: transform?
1 like

@artgodint
now try that on a shitty laptop
1 like

@vladlykhonis
There is a pretty bad frame drop there isn't it? Or smooth in web terms means something else?
1 like

@soulblocks
WebXR
1 like

@gwenzek
What is this?

@dmfilipenko
Are you using xflow for nodes?

@popelyshyn
But why? Also Figma exists

@CMichael85937
rust egui can make this














