ucupaint icon indicating copy to clipboard operation
ucupaint copied to clipboard

Feature request: Reduce shader compilation frequency

Open squiddingme opened this issue 1 year ago • 1 comments

Right now every time a change is made in Ucupaint while previewing with Eevee, it incurs a costly shader recompile that can hang the entire interface for a second or so depending on how complex the shader is. You can avoid this by previewing in Cycles, but this isn't always ideal.

Since shader compilation in Eevee is currently unavoidable, maybe delaying shader compilation (or if that's not possible, delaying reconstructing the shader node tree) until a few seconds after the user has stopped making changes to the Ucupaint layers could help. This way, the user can, for example, quickly set up a bunch of masks (e.g. bevel + noise + ramp for edge wear) without Blender seizing up each time a small change is made. The option should probably be configurable in case people don't want it or want to increase it for slower systems.

squiddingme avatar Jun 06 '24 10:06 squiddingme

I'm not sure how to implement that kind of thing. Maybe you can prototype it if you know how to do it. I usually go to solid mode if I want to make a lot of changes in my setup.

ucupumar avatar Jun 06 '24 12:06 ucupumar