-
Hi! First of all, once again, thanks for this wonderful tool and your great work. I have a custom BSDF (Mitsuba 3: Tutorial Custom Plugin) and use the Python plugin. I have a test scene (Mitsuba 3: Gallery Material preview) that I usually render with the Question: I would like to know how much memory my custom BSDF uses in comparison to a reference (e.g., a Mitsuba BSDF). Is there a suggested / general* way of doing this? For instance, DrJit offers drjit.kernel_history() for performance benchmarks, which I absolutely adore. Disclaimer: When it comes to memory-related stuff, I am completely ignorant (e.g., which metric to use, what to consider, etc.). As such, I would be extremely happy for any type of suggestions (e.g., relevant papers, code snippets, etc.). Let me know if you need additional information from my side. And, thank you very much in advance! Kind regards, *General in the sense that it gives meaningful metrics for the given mitsuba variant (e.g., |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Mitsuba/Dr.Jit will by default compile your custom BRDF into a subroutine of a Megakernel. This means that temporary steps of the computation are stored in registers and won't take up any memory. The only memory usage is in terms of textures etc., that drive the parameters of your model. |
Beta Was this translation helpful? Give feedback.
Mitsuba/Dr.Jit will by default compile your custom BRDF into a subroutine of a Megakernel. This means that temporary steps of the computation are stored in registers and won't take up any memory. The only memory usage is in terms of textures etc., that drive the parameters of your model.