You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run it just like this, you will see that the scene parameter update triggers a kd-tree rebuild.
This does not occur if you change the key mat_sphere to a_mat_sphere. In that case, the material has no parent node in the update tree.
Neither does it if you change the key sphere to a_sphere. In that case, the material is child to the sphere shape.
So my conclusion is that the kd-tree rebuild is only triggered upon traversal when updating a node that has a shape group as its parent. A careful definition of scene dictionary keys is a valid workaround, but it's not very reliable.
I ran into this issue while rendering a scene with instances of large meshes (a few 100s MB of PLY data). The kd-tree rebuilds end up dominating the processing time in that case.
There is another issue, also (maybe unrelated): upon kd-tree rebuild, no memory is released, and my process eventually runs out of memory after a dozen scene updates.
The text was updated successfully, but these errors were encountered:
System information (I'm using a custom build of v3.5 with the built-in kd-tree; I haven't been able to try with v3.6 yet):
This issue is related to scene tree traversal (#508 is useful to understand what is going on when changing scene dictionary keys).
Let us consider a simple script like this one:
If you run it just like this, you will see that the scene parameter update triggers a kd-tree rebuild.
mat_sphere
toa_mat_sphere
. In that case, the material has no parent node in the update tree.sphere
toa_sphere
. In that case, the material is child to the sphere shape.So my conclusion is that the kd-tree rebuild is only triggered upon traversal when updating a node that has a shape group as its parent. A careful definition of scene dictionary keys is a valid workaround, but it's not very reliable.
I ran into this issue while rendering a scene with instances of large meshes (a few 100s MB of PLY data). The kd-tree rebuilds end up dominating the processing time in that case.
There is another issue, also (maybe unrelated): upon kd-tree rebuild, no memory is released, and my process eventually runs out of memory after a dozen scene updates.
The text was updated successfully, but these errors were encountered: