How to turn off DLSS in unreal engine?

How can I package a game in an Unreal Engine project with the DLSS plugin installed, where DLSS is not enabled by default during runtime? I hope that after game runs, the player decides whether to enable DLSS or not.

Because I found that there is a conflict between DLSS and VSync. When DLSS is enabled, I can choose to turn off VSync, but if the player really wants to enable VSync, it is found that DLSS cannot be turned off.

The resulting situation is that when VSync is enabled, the latency will be very large.

When I haven’t installed the DLSS plugin and packaged the game, the latency displayed on the right is 0 ms. At this time, enabling VSync can work normally.

When the DLSS plugin is installed and the game is packaged, the latency displayed on the right side will be around 10 to 20 ms.

However, when vertical synchronization is enabled at this time, the latency will gradually increase until it reaches about 100 ms, which obviously affects the gameplay.

Moreover, sometimes when entering the game and doing nothing, the latency will increase slowly. Unless I set the frame rate cap to unlimited, it will reduce the latency by about 20, which is relatively normal.

I called out the NGX panel and tried to turn off all the Settings that could be turned off in the panel, but the latency on the right still existed. It seemed that it was always affected by the DLSS plugin, even though it did not use the effect of the DLSS plugin.

So, is there any way to get rid of the influence of the DLSS plugin, completely turn off DLSS and enable VSync normally?

Hi @dreamblender,

I don’t have a quick answer for you since DLSS should not interact with VSync in this way and add latency with that magnitude. I could ask you to double check that you did all the necessary integration steps correctly, but I just assume that you did.

I can pass this on to the team, but no promises, as far as I am aware we didn’t encounter an issue just like this.

Before I can share this, would you mind giving me more details about the setup you are encountering this on?

Exact CPU and GPU setup, Windows version, UE and driver version to start with would be helpful. If we need more I’ll get back to you.

Thanks!

Hi, @MarkusHoHo, thank you for your reply!

This is the information of my setup.

Operating system: Windows-10-10.0.19041-SP0 64 Bits
CPU:i9-13900K
Graphics card: NVIDIA GeForce RTX 4080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 572.83
unreal engine version 5.3.2-29314046 DirectX 12 (SM6)

After installing the plugin, I tried all the functions of DLSS, all the functions worked normally.

I have also seen your comments under other posts. I have tried the commands r.NGX.enable 0 and r.NGX.DLSS.enable 0. When executed, the screen flashes for a moment. It seems that the commands are effective, but they still cannot solve the problems of latency and vertical synchronization, and the effect of DLSS still exists. It seems that it is still affected by DLSS.

So I want a way to turn off DLSS when running the game, remove the influence of DLSS, and players can decide for themselves whether to enable the DLSS function.

Kind regards,
dreamblender

hello, @MarkusHoHo

Could you tell me the way to turn off DLSS when the DLSS plugin is installed and the packaged game is running? Although I have encountered problems with DLSS and VSync, if you tell me how to turn off DLSS, perhaps I can avoid the conflicts it causes.

thanks

Kind regards,
dreamblender

I am sorry, but I cannot tell you anything else than what you can find in the Plugin SDK documentation.