Apply game settings hitch

Hi,

I’ve done some further testing on this issue and found removing FGlobalComponentRecreateRenderStateContext does NOT appear to cause any issues. Console variable changes that require a render state recreation already trigger this on change.

Note that on version 5.4 of the engine you might notice a slightly larger hitch without the FGlobalComponentRecreateRenderStateContext in ApplySettings on the conditional that one of the following console variables changes:

r.Lumen.DuffuseIndirectAllow -> Can change via GlobalIlluminationQuality scalability setting

r.DetailMode -> Can change via EffectsQuality scalability setting

r.MaterialQualityLevel -> Can change via EffectsQuality scalability setting

This is because the recursion guard in FGlobalComponentRecreateRenderStateContext is still present in UE 5.4. However, it has since been removed in 5.5, so the FGlobalComponentRecreateRenderStateContext will only make hitches worse in 5.5 onwards.

Since this seems to be a regression in UE 5.5 forward, I’ve submitted a bug report for this issue.

Public tracker link here:

https://issues.unrealengine.com/issue/UE-296881

Let me know if you have any further queries:

Regards,

Lance