compute.toys icon indicating copy to clipboard operation
compute.toys copied to clipboard

Bug: too many shader compilations

Open munrocket opened this issue 2 years ago • 2 comments

check dev console on page load.

munrocket avatar Sep 14 '23 19:09 munrocket

Yeah, known issue but it's a tricky one to fix, it's due to React triggering updates as it loads all the components. Maybe we could suppress shader compiles until the page has fully loaded? But I'm not entirely sure how to implement that. In any case webgpu should be caching the compiled shaders, so doesn't seem to be a huge issue in practice, though still not ideal

davidar avatar Sep 16 '23 23:09 davidar

Here they fixed reconciliation https://github.com/pmndrs/its-fine Maybe we can just use it here?

munrocket avatar May 08 '24 08:05 munrocket