patuwwy/ShaderToy-Chrome-Plugin

Paint calls performance issue

MichaelMoroz opened this issue · 0 comments

When you set up a paint call multiplier, not only do the buffers get executed N times, but Image buffer does too. The problem is that calling Image more than once per frame has no benefit at all, and is just consuming performance, since there is no way to sample the result of Image in the Buffers.
Having a way to just call Buffers N times would be beneficial for some specific algorithms like sorting or path tracing. While using Image to only render the result once per frame.

I'm not super sure if its possible to do directly with Shadertoy's API, it might be necessary to rewrite part of it somehow.