跳过导航
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__byrne1931 位关注者

在 X 上查看
573 个赞下载原帖

126,611 次观看

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 条评论

评论来自 X (Twitter) 上的原帖

  • orkhan 的头像

    @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 个赞

  • Emrah 的头像

    @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 个赞

  • sinasun 的头像

    @sina_sun_

    maybe reactflow?

    11 个赞

  • Anthony Di Benedetto 的头像

    @anthonydibe

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

    5 个赞

  • Simon 的头像

    @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 个赞

  • Alessandro Perilli 的头像

    @perilli

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

    2 个赞

  • Karol Novljaković 𝕏 的头像

    @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 个赞

  • symbols 的头像

    @symbolsrsymbols

    what app is this?

    2 个赞

  • Sebastian Müller 的头像

    @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 个赞

  • Majez/mion 的头像

    @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 个赞

  • AtherionDev 的头像

    @AtherionDev

    That's actually not that many.

    1 个赞

  • Andrew Prifer 的头像

    @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 个赞

  • Alrik Wendel 的头像

    @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 个赞

  • Artificial God Intelligence 的头像

    @artgodint

    now try that on a shitty laptop

    1 个赞

  • Vlad Lykhonis 的头像

    @vladlykhonis

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

    1 个赞

  • soulblocks 的头像

    @soulblocks

    WebXR

    1 个赞

  • Guillaume Wenzek 的头像

    @gwenzek

    What is this?

  • Dima Filipenko 的头像

    @dmfilipenko

    Are you using xflow for nodes?

  • Ruslan Popelyshyn 的头像

    @popelyshyn

    But why? Also Figma exists

  • Chen Michael 的头像

    @CMichael85937

    rust egui can make this