Fork me on GitHub
#humbleui
<
2022-11-01
>
lilactown03:11:16

I'm playing around with trying to render a component in isolation, instead of rendering from the root down. the thing I'm not sure about is how to get a reference to a Canvas object

lilactown03:11:32

it seems like the canvas is a highly mutable thing that isn't save to keep a reference to

lilactown04:11:08

for some reason I thought that humbleui wasn't meant to be immediate mode, but it seems like the state of the canvas needs to be re-built each re-render. there's not an engine for diffing and figuring out what exactly needs to change in a declarative way

Niki10:11:54

Like dirty regions? No, I don’t think it makes sense in modern computers. It’s way faster to re-render everything from scratch

lilactown20:11:23

maybe a stupid question: is there a difference between re-rendering everything from scratch, and "immediate mode" rendering?

Niki20:11:29

depends on what you mean. Immediate mode UIs usually recreate whole components tree each frame. Immediate rendering is, I guess, rendering all from scratch?

lilactown14:11:16

yeah I suppose that makes sense. my brain is broken by browser UIs, I'm trying to learn everything else now

lilactown14:11:13

does ski(j)a then take care of figuring out how to draw all this stuff using the GPU?