My system info:
OptiX Version:[6.1.2] Branch:[r421_00] Build Number: ABI Version: CUDA Version:[cuda100] 64-bit, Display driver: 430.26, Ubuntu 18.04 and gcc 7.3.0, 2x rtx 2080 Ti
I have been using very large buffers that I have to resize frequently. If I just use the C++ Buffer::setSize() I soon run into Out of memory exceptions. So it seems that the memory is not freed.
On the other hand, if I use destroy() and then create the buffer again with a new size, no exception is raised.
So, the question is: what happens with the memory when you resize a previous buffer with setSize()? Is it freed?
And, regarding performance, is it wise to just destroy and recreate buffers or should I try to reuse the buffer somehow?
Thanks a lot for your help.