compute-toys/compute.toys

Bug: too many shader compilations

Opened this issue · 2 comments

check dev console on page load.

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

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