ShaderToy-Chrome-Plugin icon indicating copy to clipboard operation
ShaderToy-Chrome-Plugin copied to clipboard

Paint calls performance issue

Open MichaelMoroz opened this issue 2 years ago • 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.

MichaelMoroz avatar Feb 13 '22 17:02 MichaelMoroz