I'm running into some very strange behavior trying to figure out how to reduce memory usage while rendering a fairly large and complex scene. I've optimized most of the geometry, reduced texture sizes, converted some stuff to VrayProxy and using Xrefs where appropriate. What's most strange is that even though the Vray Memory Tracker reports around 37gb total usage, the memory footprint of 3dsMax during the render soars past 100gb. I'm running Max 2019.3 and Vray Next Update 2 and rendering via cpu engine.
Another very strange behavior is that the overall memory usage during rendering the same test frame with the same settings can vary quite a bit between 48gb and 120gb. The IDLE Max process between these test renders will sometimes show usage as high as 80gb and other times as low as 25gb. This changes without me doing anything in my scene or UI other than hitting render again and again to test things. I know Windows memory reporting is not the greatest, so not sure I can trust it, but the Vray memory tracker log consistently clocks in right at ~37gb. On the farm Deadline reports peak memory usage @ 120gb for this frame, but I'm assuming that relies on Windows as well.
Here's the last bit of the log file with the overall summary. Unsure how to reduce overhead of the 3dsMax process while rendering to be more in line with what Vray appears to be actually using.
Total
Type Peak memory consumption
Bitmap 14.04 GiB
Bucket image sampler 3.61 GiB
Dynamic displaced geometry 62.84 MiB
Dynamic geometry 608.18 MiB
Dynamic moving geometry 355.94 MiB
GI < 1 MiB
Lights 76.65 MiB
Misc. 9.00 GiB
Misc. geometry < 1 MiB
Misc. moving geometry < 1 MiB
Static geometry 3.92 GiB
Static moving geometry 3.13 GiB
Tiled bitmap 1020.33 MiB
VFB 937.47 MiB
Frame startup 23.32 GiB
Frame total 36.69 GiB
Another very strange behavior is that the overall memory usage during rendering the same test frame with the same settings can vary quite a bit between 48gb and 120gb. The IDLE Max process between these test renders will sometimes show usage as high as 80gb and other times as low as 25gb. This changes without me doing anything in my scene or UI other than hitting render again and again to test things. I know Windows memory reporting is not the greatest, so not sure I can trust it, but the Vray memory tracker log consistently clocks in right at ~37gb. On the farm Deadline reports peak memory usage @ 120gb for this frame, but I'm assuming that relies on Windows as well.
Here's the last bit of the log file with the overall summary. Unsure how to reduce overhead of the 3dsMax process while rendering to be more in line with what Vray appears to be actually using.
Total
Type Peak memory consumption
Bitmap 14.04 GiB
Bucket image sampler 3.61 GiB
Dynamic displaced geometry 62.84 MiB
Dynamic geometry 608.18 MiB
Dynamic moving geometry 355.94 MiB
GI < 1 MiB
Lights 76.65 MiB
Misc. 9.00 GiB
Misc. geometry < 1 MiB
Misc. moving geometry < 1 MiB
Static geometry 3.92 GiB
Static moving geometry 3.13 GiB
Tiled bitmap 1020.33 MiB
VFB 937.47 MiB
Frame startup 23.32 GiB
Frame total 36.69 GiB
Comment