When animating the the emissive color of a renderer influencing RTGI, enlighten updates are scheduled every single frame, indefinitely, even after the animation has concluded.
This is caused by the animation system setting the emissive color each frame, which in turn ticks enlighten each frame. A proposed fix is to add a check for if the emissive color being setting is different from the one already present. This kind of change-check already exists for other kinds of animatable properties.
Repro:
- Open sample scene
- Enter playmode
- Observe that the emissive cube changes color via animation
- Wait till the animation has finished
- Open the built in profiler and navigate to the Realtime GI section/module, select it
- Observe in the bottom view that pending material updates is not 0, as material updates are getting constantly scheduled.