patriciogonzalezvivo / glsl-sandbox

Prototype complex pipelines directly from a single shader by branching it into stages
MIT License
56 stars 2 forks source link

feedback effect gets slow when resizing window #7

Closed marioecg closed 1 year ago

marioecg commented 1 year ago

I noticed that when you resize the window for a while the canvas starts to get a bit jittery and slow, specially for the ping-pong buffers. Do you know why?

I'm testing on a 14" M1 Macbook Pro

Screen Shot 2023-08-14 at 15 20 33
marioecg commented 1 year ago

It seems to affect all of what's rendered, not just the ping-pong outputs.

patriciogonzalezvivo commented 1 year ago

My bad, I was re-triggering draw() in the example and doubling the amount of draw calls every time. https://github.com/patriciogonzalezvivo/glsl-sandbox/commit/5d26de82f360bcf0de789fbb55a654e380aee127