Fork me on GitHub
#hyperfiddle
<
2023-04-18
>
Dustin Getz12:04:44

Seems like Three.js should work with electric, by issuing point mutations to the scene graph with Electric and then having the entrypoint call renderer.render (with a forced causal dependency on animation time). Scene graph construction can be refactored into the declarative style using the same approach as electric-dom, by using macros to maintain a focal point for writes in dynamic scope. A few hours work at intermediate understanding, use electric-dom as a reference (it's very simple)

🎉 6
denik16:04:43

any tricks to speed up compilation? have 4 sec+ recompile/reload cycles on a maxed out 2023 macbook pro

xificurC17:04:36

Can you comment out namespaces you're not working on? Or change the entrypoint?

denik17:04:55

sure it gets much faster then

denik17:04:12

but sometimes that’s not so easy like when I have components deeply nested in UI context

xificurC17:04:50

Yeah, sorry, no other tricks up my sleeves right now. We're working towards fixing compilation times but there are other tickets we need solving first

Dustin Getz17:04:55

If the recompiles are related to style changes, using an external CSS toolchain can reload css without triggering an Electric rebuild

denik17:04:07

using tailwind so a lot of styles are added as classes which triggers compiles