Skip to content
Discussion options

You must be logged in to vote

Hi @ZenithGD ,

Usually for creating these types of buffers, you need to reserve an amount of memory beforehand. In your case, that could be the maximum number of bounces.

After deciding, I would recommend you take a look into a new feature of Dr.JIT named "Local Memory" which allows to have a buffer of fixed size per thread. You can imagine that it is like local storage per thread (in the CPU context).
With that, you could use the depth of the integrator to index in that buffer to retrieve the information saved on it and it will be more performant than previous solutions that had to reserve memory for the entire wavefront.
Just a final note: I am assuming that both the first and second ph…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ZenithGD
Comment options

@ZenithGD
Comment options

Answer selected by ZenithGD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants