Fix #119791: Cycles: Transparent hair curves render slow with volumes #121042

Merged
Sergey Sharybin merged 2 commits from Sergey/blender:fix_119791 into main 2024-04-24 20:16:08 +02:00

2 Commits

Author SHA1 Message Date
Sergey Sharybin 1353ab4cc1 Remove old save-restore solution for the object manager flags
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
2024-04-24 19:50:45 +02:00
Sergey Sharybin 0a1905ca52 Fix #119791: Cycles: Transparent hair curves render slow with volumes
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
The slowdown was caused by the volume step calculation returning an
infinite value. This was caused by the calculation happening before
the object bounds are calculated via the code path which does some
early update for the displacement and hair transparency. The actual
value was never re-calculated after bounds are valid.

The solution is to only clear need-update after the final call of
the device_update_flags().
2024-04-24 19:08:24 +02:00