Description

When a specific configuration of HDR cvars are set, PIE in a New Editor Window will not render the game world.

Settings (For DefaultEngine.ini):
```
[SystemSettings]
r.AllowHDR=1
r.HDR.Display.ColorGamut=0
r.HDR.Display.OutputDevice=5
r.HDR.EnableHDROutput=1
r.HDR.UI.CompositeMode=0
Slate.EnableGlobalInvalidation=1
```

Also tested in //UE5/Main, CL: 35660734

The Licensee has suggested a fix for Mainline:

In the file ElementBatcher.cpp, and the function "FSlateElementBatcher::AddCachedElements(...)":
```
if (EnumHasAnyFlags(CachedBatch.GetDrawFlags(), ESlateBatchDrawFlag::HDR))

{ //RenderBatchesHDR.Add(CachedBatch); RenderBatchesSDR.Add(CachedBatch); // TODO: Check if composition is enabled? }

else

{ RenderBatchesSDR.Add(CachedBatch); }

```

Note that in Unreal Engine 5.4, the function to modify is "FSlateBatchData::AddCachedBatchesToBatchData(...)" instead.

Steps to Reproduce

1. Download the Licensee's test project and open
Note that the Test project is built for //UE5/Main, but can be opened with //UE5/Release-5.4 with a new Level (see addl info URL)
2. Play PIE in "New Editor Window (PIE)" mode
3. Observe that the new PIE window does not render the game world, but still captures the mouse.

Have Comments or More Details?

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

0
Login to Vote

Unresolved
ComponentUE - Editor - UI Systems
Affects Versions5.45.4.3
Target Fix5.6
CreatedAug 28, 2024
UpdatedSep 10, 2024
View Jira Issue