Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specifying render adapter #12

Open
PixelyIon opened this issue Dec 5, 2023 · 3 comments
Open

Support specifying render adapter #12

PixelyIon opened this issue Dec 5, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request help wanted Extra attention is needed

Comments

@PixelyIon
Copy link

PixelyIon commented Dec 5, 2023

I'm using this on a laptop with an Intel iGPU as well as an Nvidia dGPU. Windows OS code currently automatically picks my iGPU as the render adapter for the DXGI swapchain which isn't desirable as my iGPU isn't nearly as good at video encoding compared to my dGPU. From a cursory look, a potential fix would involve specifying the desired adapter in the config either by its name or LUID and calling IddCxAdapterSetRenderAdapter at the start with the GPU's LUID to ensure it's using the right adapter. A tiny utility to enumerate the LUIDs of all GPUs present on the system to go with it would be perfect.

@zjoasan
Copy link

zjoasan commented Dec 8, 2023

Since I can't find an easy way to script "ID3D12Device::GetAdapterLuid", would this be helpfull? Haven't looked at the code to sign a GPU to the virtual driver:
Powershell command:

gwmi win32_VideoController | FT Name,AdapterDACType,DeviceID,PNPDeviceID

Name                       AdapterDACType    DeviceID         PNPDeviceID
----                       --------------    --------         -----------
Intel(R) UHD Graphics 630  Internal          VideoController1 PCI\VEN_8086&DEV_3E9B&SUBSYS_1B3E1043&REV_00\3&1158365...
NVIDIA GeForce GTX 1050 Ti Integrated RAMDAC VideoController2 PCI\VEN_10DE&DEV_1C8C&SUBSYS_1B3E1043&REV_A1\4&1378839...
IddSampleDriver Device HDR                   VideoController3 ROOT\DISPLAY\0000

@kayti
Copy link

kayti commented Dec 27, 2023

So is there any way to do it with released driver? I have RTX3080 and T400, wanted to use T400 for encoding, so i could use HAGS with RTX 3080 and FSR3 for frame generation. With HAGS on right now and high gpu utilization the stream is choppy at best :P

@bud3699 bud3699 added duplicate This issue or pull request already exists enhancement New feature or request help wanted Extra attention is needed labels Feb 16, 2024
@matheusfaustino
Copy link

You can select the GPU now: #110 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants