I have a very simple scene with an object and backdrop (about 9000 triangles in total), lit by an HDRI and a couple of area lights that I am rendering to test a number of material variations, rendering them as turntables.
I change the material proceedurally using python and invoke the PIE renderer to render the turntables at a modest resolution of 1080x1080, 168 frames. I have thousands of variations that I need to render, but the renders slow down drastically as the UE memory footprint climbs from ~4gb for the base scene at the start of rendering to about 32gb before I have to shut it down and restart.
The PIE renderer seems to continuously leak memory and never releases it until the editor is closed. I can’t render effectively overnight as I have to stop the script and close the editor every couple hours to free the memory.
I dumped the memreport before and after rendering a couple hundred turntables (and seeing the memory skyrocket). Once of the most interesting lines in the report seems to be this:
BEFORE:
13243752 - StaticMesh Total Memory - STAT_StaticMeshTotalMemory - STATGROUP_Memory - STATCAT_Advanced
AFTER:
18446744073229209912 - StaticMesh Total Memory - STAT_StaticMeshTotalMemory - STATGROUP_Memory - STATCAT_Advanced
!!!
There may be other interesting things in the reports (I dont really know what I am looking for), but this was umissable as there are absurd, column-busting ORDERS of magnitude in difference.
I am rendering on an A6000, though the problem is exactly the same on another machine with a TitanRTX. Yes, I have the latest Nvdia drivers installed (511.79)
Thanks for any help or pointers on how to resolve. Let me know if you want the memreports.
There are no errors in the console during rendering and the movies look perfect, but there is this feedback that I dont know how to resolve, but I’m not sure it has anything to do with the memory leak:
LogMovieRenderPipeline: Unexpected size in FMoviePipelineSurfaceReader::CopyReadbackTexture_RenderThread.
LogMovieRenderPipeline: Expected size: 1080 x 1080
LogMovieRenderPipeline: Actual size: 1088 x 1080
Nowhere in my scene do I have anything set to 1088. Camera sensor is square and output resolution is set to 1080x1080. I have no idea where 1088 comes from.

