mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
This improves performance by 5-10% for various benchmark scenes and GPU devices, while on others it's roughly the same. There is a performance regression with Intel Arc A750 on Linux related to shadow queueing overhead, that is planned to be fixed separately. Another goal of this change is to sidestep GPU compiler bugs that seems more likely to happen with bigger kernels, and to make it easier for the texture cache to cancel and resume on cache miss. A new shade_light_nee kernel was added, and shade_light was renamed to shade_light_forward (following naming for MIS functions). The shade_light_nee kernel is only used when the light does not have constant emission. The shade_dedicate_light kernel no longer does any shading. A future optimization may be to fold this into the intersect_dedicated_light kernel. LightSample.uv was removed as shading no longer happens immediately. A new LightPdf was added for the cases where only the pdf is needed, avoiding the overhead of constructing a full LightSample. There may be more room to shrink LightSample in future refactors. The integrate state memory usage is increased by 1 float when not using the light tree, for the light threshold. All other informating for shading is reconstructed the shadow ray, including position, normal and uv. Pull Request: https://projects.blender.org/blender/blender/pulls/152649 |
||
|---|---|---|
| .. | ||
| lcg.h | ||
| mapping.h | ||
| mis.h | ||
| pattern.h | ||
| sobol_burley.h | ||
| tabulated_sobol.h | ||
| util.h | ||