Developer Notes

This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.

Description

When the world settings window has been opened but is not visible, the destructor for FLightmapCustomNodeBuilder is never called to remove the editor delegates. Opening a large number of maps has been reported to cause performance problems due to the ever increasing number of delegates. See repro steps for further info.

Steps to Reproduce

Open the World Settings Window and then switch to another window that is docked with it so that it is no longer visible.

Place breakpoints in FLightmapCustomNodeBuilder::SetOnRebuildChildren and FLightmapCustomNodeBuilder::~FLightmapCustomNodeBuilder, which add and remove the delegates.

If you keep opening new maps you will see the breakpoint in SetOnRebuildChildren will get hit but not the second. The destructor only gets called when the editor exits.

If you repeat this with the world settings window visible the delegates get deleted correctly.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-25725 in the post.

0
Login to Vote

Won't Fix
ComponentTools
Affects Versions4.10
CreatedJan 20, 2016
ResolvedMay 30, 2017
UpdatedMay 30, 2017