How-To In Unreal Multi Gpu

How to configure Unreal with a MultiGpu setup

Unreal Plugins

First copy the Smode plugins in your project "plugins" folder or in the engine "plugins" folder
You need to enable the plugins Smode, Spout and nDisplay

Unreal Projects Settings

1) Set the Custom timestep to SmodeCustimTimeStep

2) Set the Game Instance Class to SmodeGameInstace

3) Set enable alpha channel support in postprossess to Linear Color Space only or Allow through Tonemapper depending on what you will do in Composure

Plugins settings

1) Select the Ip and port of the Server where Smode is running ( when in the same Server)

2) Activate nDisplay in nDisplay: Main --> Enable: True

Integrate your Map

Option 1 ( the preset ):

1) Open the levels panel
2) Drag and drop the “SmodeSetup_Map” from the plugin “Smode Content/utilities” to the levels
3) Select all actor from this level
4) Move them into the persistent level ( say yes to the prompt )
5) Delete the “SmodeSetup_Map” from your levels ( say yes to the prompt )

Option 2( the custom ):

1) Setup your composure like you want with a back and front layer elements ( name are important)
Select “Back_render_target” , “Front_render_target” as output of your layer elements, and you can put a second output as viewport to gain performance
2) Drag and drop the “BP_SmodeRig” from “Smode Content”
3) Connect the CineCamera and composure in the rig

Select Front Object

For an object to be rendered into the Front Plate you need to add it into a layer
Then select the layer in the front Composure
and Exclude it from the back Composure


NDisplay Launcher will allow you to have better performance than in editor mode and also have multiple node on different GPU
1) Launch NDisplay Listener and NDdisplay Launcher located in your Unreal Install Engine/Binaries/DotNET
2) In the Launcher you need to had your project
2a)In the first window you need to select UE4Editor.exe located in Engine/Binaries/Win64
2b) In the second window you will select your .uproject
3) Then you add your config file for the cluster.
Example config file is in Plugins/SmodeUnrealPlugin/Content/NdisplayConfig/
  • Beware of the Ip of the Server
  • Beware of the GPU configuration
  • Gpu number start at 0 unlike Smode where it’s 1
  • it’s not useful to have 2 unreal instance if they are on the same Gpu

Video Tutorial

Now you can check How-To Unreal In Smode How to integrate Unreal inside Smode Read More for the next step

See Also: