Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2021.1.X



Found in


Issue ID




Performance regression when baking light probes with a light cookie in the scene

Progressive Lightmapper


Introduced by

OpenCLCommonBuffers::PrepareLightCookiesBuffer is called 500+ times during the bake, because SetSceneStateOnTechnique(this) is called from RadeonRaysBakeLightProbesTechnique::Render()!

This should only be done once, in RadeonRaysBakeLightProbesTechnique::AttachHeavyDataPointers. SetSceneStateOnTechnique isn't tread safe so this can also cause crashes if scene state is changed while baking.

Performance hit was visible in but ignored. The more light probe groups and the higher sample counts you have, the worse it gets. landed in trunk at 2020.1.0a22.2693_a851a673d667

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.