tunabrain / tantalum

WebGL 2D Light Transport
Other
561 stars 62 forks source link

Update compiled shaders, delay initial frame until a bit after render has completed #5

Closed lahwran closed 3 years ago

lahwran commented 5 years ago

This intentionally slows down initial render slightly to get a full image without pausing mouse movement, which empirically my friends and I find allows much easier tuning and makes it easier to produce very interesting images.

It also slightly emphasizes a bug. There seems to be an incremental slowdown, possibly due to some sort of accumulation of duplicated elements or something. It seems to happen mainly when you pause mouse movement and the scrollbar increases. I've found it a little hard to debug, because this is old jquery imperative style code and I'm out of practice with the old ways :) I'm hoping to someday extract this all out into react components, which might just fix the problem.

lahwran commented 3 years ago

closing due to inactivity.