# 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:** 1\
**Showing post:** 2

<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)

---

_[View the full topic](https://forums.unrealengine.com/t/ndisplay-migration-unreal-4-27-to-5-1-missing-output/795793)._
