OSL gradient shader in lights makes live view slow
Posted: Thu Apr 24, 2025 9:38 am
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.
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.