Installation Note: D3D Desktop Duplication on Laptops
June 9, 2025 ยท View on GitHub
Windows has a little quirk when running Desktop Duplication on laptops with hybrid GPU systems (integrated + dedicated). You will need to perform an additional tweak to get D3D Desktop Duplication to work correctly on your system.
Problem
The problem is fully documented in this article
Solution
The solution is presented as such:
Run the application on the integrated GPU instead of on the discrete GPU
Therefore, to be able to use D3D Desktop Duplication on hybrid GPU laptops, we need to force Python to run on the integrated GPU.
Approach 1: Windows 10 Settings
You must be running Windows 10 1809 or later for this to work.
- Press the Windows Key, type
Graphics settingsand press enter - You should see the following window:

- Make sure the dropdown is set to
Desktop Appand clickBrowse - Find the
python.exeused by your D3D Desktop Duplication project. Example:

- Click on
Options - Select
Power savingand clickSave

- If you did everything right it should look like this:

- Repeat the process for other potentially relevant executables for your project:
ipython.exe,jupyter-kernel.exeetc.
Approach 2: Nvidia Control Panel
Need help to fill in this section. See issue SerpentAI/D3DShot#27
Approach 3: AMD Catalyst Control Center
Need help to fill in this section. See issue SerpentAI/D3DShot#28
Question: Won't this impede on my ability to use CUDA, OpenCL etc?
Preliminary answer: No. This is telling Windows how to render Python processes with the Desktop Window Manager. Most Python applications are console applications that don't have a window. Even if you have a GUI application with one or more windows, this should only affect the rendering aspect (i.e. your windows won't be rendered through the dedicated GPU) and shouldn't limit hardware access in any way.
(copied and adapted from https://github.com/SerpentAI/D3DShot/wiki/Installation-Note:-Laptops)