What is TDR and how to solve the TDR(Timeout Detection Recovery) problem when rendering?

Most users of graphics software may have once seen a notification which warns that the computer's TDR delay value is too low. It is also likely to pop up when you render high-resolution images or videos in D5 Render.
To solve this problem and ensure a good experience in D5 Render, please follow these steps to increase the TDR recovery value:
1. Close D5 Render, and find its shortcut on the desktop or in the Windows start menu.
2. Right-click on it and choose Run as administrator.
Please note that this action needs administrator permission of your Windows account, and if you are not an admin, please switch to the admin account, or contact the IT department of your company.
3. After the welcome page of D5 Render appears, wait for about 5 seconds, then close D5 Render and reboot your computer. Now you do not need to worry about TDR crash issue anymore.
Please note that this action will not take effect until the computer is rebooted.

What is TDR?

TDR stands for Timeout Detection Recovery, which is a protection mechanism from Windows system. It will shut down the GPU driver when GPU computation takes too long to respond.
Generally speaking, the graphics card may need minutes, or even hours, to render a project. But the Windows system will think it is not working because the graphics card does not respond in a few seconds.
In this case, D5 Render will be closed with the GPU driver.
Before the TDR mechanism was invented, we could only reboot the computer after GPU crashed. So this feature is very useful for ordinary users. But for the development and debugging of GPU parallel computing, especially 3D visualization software that has a large demand for video cards, such as D5 Render (real-time ray tracing rendering), the default value may be too low. Therefore, you need to follow the above steps to increase how long your computer waits for the GPU to respond.

How to manually control the TDR value

In case you would like to control the settings manually, here are the tips and steps to manually check and edit the TDR value.
Please note that editing the registry can have serious, unexpected consequences that can prevent the system from starting and may require reinstalling the whole operating system if you are unsure of how to modify it. The registry keys mentioned on this page shouldn't create these kinds of issues however.

D5 Render takes no responsibility for any damage caused to your system by modifying the system registry.
1. Open the Registry Editor of your Windows system (administrator permission required)
2. Navigate to this key:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers
3. Add or Edit the TdrDelay value
Right click on the TdrDelay key > Modify, then switch to Decimal and enter the Value data as 60.
If the TdrDelay key doesn't exist, please create a new one through Edit >New > DWORD (32bit) Value . Name it "TdrDelay".
4. Add or Edit the TdrDdiDelay value
Do the same as Step 3 for the TdrDdiDelay value.
5. Close the Registry editor, then reboot your computer
After the above steps are finished, it will now look like this. Remember to reboot your computer, otherwise the change will not take effect.

Tips

1. To revert the TDR to its default values, you can go to the Registry editor and adjust TdrDelay to 2s, TdrDdiDelay to 5s; or delete the two keys directly.
2. If you still encounter this error message, or other software on your computer requires a higher TDR value, you can increase it to 120s.
3. This setting may be restored after system update or re-formatting, as well as video driver update. Therefore, we may need to change the setting again after them.
Reference: Testing and debugging TDR during driver development