Skip navigation
How is it this smooth at a thousand nodes?
0:00 / 0:54

How is it this smooth at a thousand nodes?

Christian Byrne 一人

@c__byrne1.9K followers

Visit on X
573 likesDownloadOriginal post

126,611 views

How is it this smooth at a thousand nodes? Is there another app that can compete with this (using DOM)? Grateful I got to build it from scratch with performance as top priority.

34 Comments

Comments from the original post on X (Twitter)

  • orkhan's profile picture

    @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

  • Emrah's profile picture

    @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

  • sinasun's profile picture

    @sina_sun_

    maybe reactflow?

    11 likes

  • Anthony Di Benedetto's profile picture

    @anthonydibe

    Lmao what are you even doing with so many nodes??

    5 likes

  • Simon's profile picture

    @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

  • Alessandro Perilli's profile picture

    @perilli

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

    2 likes

  • Karol Novljaković 𝕏's profile picture

    @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

  • symbols's profile picture

    @symbolsrsymbols

    what app is this?

    2 likes

  • Sebastian Müller's profile picture

    @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

  • Majez/mion's profile picture

    @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's profile picture

    @AtherionDev

    That's actually not that many.

    1 like

  • Andrew Prifer's profile picture

    @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

  • Alrik Wendel's profile picture

    @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

  • Artificial God Intelligence's profile picture

    @artgodint

    now try that on a shitty laptop

    1 like

  • Vlad Lykhonis's profile picture

    @vladlykhonis

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

    1 like

  • soulblocks's profile picture

    @soulblocks

    WebXR

    1 like

  • Guillaume Wenzek's profile picture

    @gwenzek

    What is this?

  • Dima Filipenko's profile picture

    @dmfilipenko

    Are you using xflow for nodes?

  • Ruslan Popelyshyn's profile picture

    @popelyshyn

    But why? Also Figma exists

  • Chen Michael's profile picture

    @CMichael85937

    rust egui can make this