When a shipping build is packaged using specific rendering settings a memory leak can be observed.
The licensee has noted that this leak presents as a 10MB per hour increase in RAM usage.
It has also been noted that setting r.RayTracing=False will prevent the memory leak.
1. Create a Blank Project
2. Modify DefaultEngine.ini with the following settings
[/Script/Engine.RendererSettings]
r.ReflectionCaptureResolution=1024
r.ClearCoatNormal=True
r.TextureStreaming=False
r.GBufferFormat=3
r.VSync=0
r.DefaultFeature.MotionBlur=False
r.CustomDepthTemporalAAJitter=False
r.DefaultFeature.AntiAliasing=2
r.DefaultFeature.AutoExposure=True
r.DefaultFeature.Bloom=True
r.MinScreenRadiusForLights=0.030000
r.MinScreenRadiusForDepthPrepass=0.030000
r.AllowOcclusionQueries=False
r.ReflectionMethod=1
r.GenerateMeshDistanceFields=True
r.DynamicGlobalIlluminationMethod=1
r.VirtualTextures=True
r.Lumen.TraceMeshSDFs=1
r.VertexFoggingForOpaque=True
r.DBuffer=True
r.AllowStaticLighting=False
r.SeparateTranslucency=True
r.MobileHDR=True
r.SkinCache.CompileShaders=True
r.RayTracing=True
r.Lumen.HardwareRayTracing=True
r.AntiAliasingMethod=4
r.PathTracing=False
r.DistanceFields.DefaultVoxelDensity=0.200000
r.Shadow.Virtual.Enable=1
r.RayTracing.Shadows=False
r.RayTracing.Skylight=False
r.Lumen.HardwareRayTracing.LightingMode=2
r.AllowGlobalClipPlane=False
r.PostProcessing.PropagateAlpha=1
3. Package a Shipping build
4. Run the created build
5. Monitor the Ram usage with the tool of your choice
6. Observe the Ram usage steadily increasing indicating a memory leak
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-268241 in the post.
7 |
Component | UE - Graphics Features - Ray Tracing |
---|---|
Target Fix | 5.6 |
Created | Apr 8, 2025 |
---|---|
Updated | Apr 14, 2025 |