Page 1 of 1

OSL gradient shader in lights makes live view slow

Posted: Thu Apr 24, 2025 9:38 am
by boxfx
Add a sphere
Add an octane area light
Start the live view
Notice that when you move the light, the live view is fast and responsive
Add a c4d gradient shader to the light
Notice that now when you move the light, the live view is slow and sluggish

Feels like a 'dirty' object refresh problem. Maybe updating the light is forcing the OSL gradient code to get recompiled needlessly?

Video attached

All versions of octane and c4d affected (tested R26 to r2025.2 and octane 2023 to 2025) Also tested on multiple workstations.

Re: OSL gradient shader in lights makes live view slow

Posted: Mon Apr 28, 2025 8:34 am
by bepeg4d
Hi,
not sure if there is something we can do on this.

Now that we have native Octane Gradient Generator and Noise4D nodes, it should be better to use these nodes, instead of native C4D Gradient and Noise nodes converted on the fly via OSL.

ciao,
Beppe