# NDisplay Migration Unreal 4.27 to 5.1. Missing Output

**URL:** <https://forums.unrealengine.com/t/ndisplay-migration-unreal-4-27-to-5-1-missing-output/795793>\
**Category:** Virtual Production\
**Tags:** ndisplay, unreal-engine, question\
**Created:** [March 21, 2023, 4:33pm UTC](https://forums.unrealengine.com/t/ndisplay-migration-unreal-4-27-to-5-1-missing-output/795793 "2023-03-21T16:33:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenny04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenny04](https://forums.unrealengine.com/u/Kenny04)\
**Post date:** [March 21, 2023, 4:33pm UTC](https://forums.unrealengine.com/t/ndisplay-migration-unreal-4-27-to-5-1-missing-output/795793/1 "2023-03-21T16:33:54Z")

</div>

I just migrated my project from unreal 4.27 to 5.1. My Ndisplay settings were working fine on 4.27 but on 5.1, the last screen was squished and compressed.

My resolutions are 12288x2160. three viewports all under the same node.

I did some googling and it says ndisplay have a texture limit of 8192x8192.

Cant seem to find a solution online. Does anyone have a quick fix to this?

 ![ndisplay02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/8/fa8f9cba1a7fc040ed20dfa659cc8394622146c0.jpeg)  
 ![ndisplay01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/a/cba3de8a6e0e4990b0c64f4ba4e495f85c4a6776.jpeg)

---

<div class="post-metadata">

**Author:** ![Kenny04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenny04](https://forums.unrealengine.com/u/Kenny04)\
**Post date:** [April 3, 2023, 7:16pm UTC](https://forums.unrealengine.com/t/ndisplay-migration-unreal-4-27-to-5-1-missing-output/795793/2 "2023-04-03T19:16:11Z")

</div>

I found some clues but i am not very good with C++.  
`"C:\ProgramFiles\EpicGames\UE_5.1\Engine\Plugins\Runtime\nDisplay\Source\DisplayCluster\Private\Render\Viewport\DisplayClusterViewport.cpp"`  
this cpp is the culprit which produce this error

> // Make sure the rect doesn’t exceed the maximum resolution, and preserve its aspect ratio if it needs to be clamped  
> int32 RectMaxSize = OutRect.Max.GetMax();  
> if (RectMaxSize \> MaxTextureSize)  
> {  
> RectScale = float(MaxTextureSize) / RectMaxSize;  
> UE\_LOG(LogDisplayClusterViewport, Error, TEXT(“The viewport ‘%s’ rect ‘%s’ size %dx%d clamped: max texture dimensions is %d”), \*GetId(), (DbgSourceName==nullptr) ? TEXT(“none”) : DbgSourceName, InRect.Max.X, InRect.Max.Y, MaxTextureSize);  
> }  
> OutRect.Min.X = FMath::Min(OutRect.Min.X, MaxTextureSize);  
> OutRect.Min.Y = FMath::Min(OutRect.Min.Y, MaxTextureSize);`

`"C:\ProgramFiles\EpicGames\UE_5.1\Engine\Plugins\Runtime\nDisplay\Source\DisplayCluster\Private\Render\Viewport\DisplayClusterViewportHelpers.cpp"`

This cpp above seems to have a command to override it:

> `int32 GDisplayClusterOverrideMaxTextureDimension = 8192;  
> static FAutoConsoleVariableRef CVarDisplayClusterOverrideMaxTextureDimension(  
> TEXT(“DC.OverrideMaxTextureDimension”),  
> GDisplayClusterOverrideMaxTextureDimension,  
> TEXT(“Override max texture dimension for nDisplay rendering (-1 == disabled, positive values == override)”),  
> ECVF\_RenderThreadSafe  
> );

After i enter the command the errors seems to stop spamming:  
`DC.OverrideMaxTextureDimension =16384`

But when i try to launch it via switchboard, its still the same i also went into 4.27 displayclusterviewport.cpp. they do not have the same codes. meaning: they only implemented this hard limit on unreal engine 5.1. DisplayClusterViewportHelper.cpp doesnt not exist in 4.27 would appreciate if someone who are proficient with C++ can have a quick look (edited)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/1/f81447e51eef753c6ed3b0afe24f02c997807f36.png)

---

<div class="post-metadata">

**Author:** ![Kenny04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenny04](https://forums.unrealengine.com/u/Kenny04)\
**Post date:** [April 3, 2023, 7:53pm UTC](https://forums.unrealengine.com/t/ndisplay-migration-unreal-4-27-to-5-1-missing-output/795793/3 "2023-04-03T19:53:40Z")

</div>

I have found the fixed after digging into almost every C++ codes I can find in the game engine.

Add this code to DPCVars in Switchboard settings:  
DC.OverrideMaxTextureDimension=16384

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/7/a97f3c849ea6de22fa102ce01fd018d70d38b779.png)

That’s It.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 14, 2023, 1:52pm UTC](https://forums.unrealengine.com/t/ndisplay-migration-unreal-4-27-to-5-1-missing-output/795793/4 "2023-06-14T13:52:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
