You can use DLSS with both the OWL Cinecam and Capture component to livestream at higher FPS/ resolutions without increasing GPU usage:
- Ensure that there is no frame-rate cap on in Unreal by pressing the '`' key (top left on the keyboard) to bring up the command line, inputting 't.MaxFPS 500' and pressing Return (this raises your max FPS to 500 to ensure there is no ceiling):
- Ensure you have the DLSS plugin installed in your project 'Plugins' folder and enabled.
- Click on 'Blueprints' in your 'Editor' toolbar and 'Open Level Blueprint' to create the blueprint for running DLSS at-Runtime:
- In the window that opens, make sure you are in 'Event Graph' and then right-click inside the window and type 'Keyboard Events' in the search box at the top. Select a key from the list which you will use to toggle DLSS on and off:
- In the node that appears, left click on 'Pressed' and in the new search box that appears type/ select 'Flip Flop' (this will allow you to toggle DLSS on/off when you press the key chosen above:
- In the 'Flip Flop' node, left click on 'A' and in the new search box that appears type 'Set DLSS Mode':
- In the 'Set DLSS Mode' Node, select the DLSS mode you want to switch on when you press the key chosen above (in the example 'Performance is selected):
- In the 'Flip Flop' node now left-click on 'B' and repeat steps 5 and 6 but this time select another DLSS mode or 'Off' if you want the option to disable it:
- Make sure to 'Compile' your Blueprint and it will be ready to go!
- Now, when you press 'Play' in your level, you can press the key you have selected (in this case '9') and it will toggle DLSS on/ off.
Additional Features
- If you want to see whether DLSS is switched on or off, you can add a 'Print String to each of the DLSS nodes which will show on screen which mode you are in:
- Just left-click on the arrow on the right side of the 'Set DLSS Mode' and in the search box that appears type 'Print String':
- In the new node that appears, you can put the text that you want to appear 'In String', select its colour and for how long it will appear on screen:
- At-Runtime it will show you which of your two options is currently selected when you press the keyboard key to toggle between them:
Bonus Feature
- You can also create a blueprint to toggle between multiple different DLSS settings using different keys rather than switching between on/off:
- In this case, you don't use a 'Flip Flop' node, you just connect a 'Keyboard Event' directly to the 'Set DLSS Mode' and use a different key for each mode of DLSS that you need:
- You can then switch between the different DLSS modes at-Runtime using the different keys you have allocated:
- It's also worth showing the FPS so you can see the performance different between the different modes. You can select this in the Editor Viewport: