-
Hello, I am trying to create a fastAPI app with Mitsuba. The algorithm goes something like this: 1. Read a mesh surface
2. Add mesh surface to a scene dictionary
3. mi.dict_load() the scene dictionary
4. ray trace the scene inside a sample() function with a custom mi.loop() On the first try, the ray tracing works and a scene is built with Optix on the first mi.Loop():
But once I get a new mesh surface, and make a new scene to add this new mesh, running the
This message doesn't show when I use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @h-OUS-e We don't expose a way to manually delete the OptiX acceleration structures, for good reasons: you might have some variables that depend on it that have not yet been evaluated. |
Beta Was this translation helpful? Give feedback.
Hi @h-OUS-e
We don't expose a way to manually delete the OptiX acceleration structures, for good reasons: you might have some variables that depend on it that have not yet been evaluated.
They delete themselves when the scene can be de-allocated. This usually happens as soon as it is no longer referenceable and isn't a dependency of any other variables.