#5611 Select a discrete gpu when possible#5619
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to keep the Windows viewer on the high-performance (discrete) GPU through the login phase by creating and holding a D3D11 device/context early, then releasing it once login completes (watchdog init).
Changes:
- Add Win32 window hooks to request/hold a “preferred” GPU via a D3D11 device/context during startup.
- Enumerate DXGI adapters and pick a preferred adapter (currently highest dedicated VRAM), with logging.
- Release the held D3D11 device/context on
initWatchdog()(login complete), and optionally warn if the adapter LUID changed.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 11 comments.
| File | Description |
|---|---|
| indra/llwindow/llwindowwin32.h | Declares new GPU selection/diagnostic helper methods and documents intent. |
| indra/llwindow/llwindowwin32.cpp | Implements D3D11-based adapter selection/retention and releases it after login completes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
774df18 to
b711167
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b711167 to
8ce44ca
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8ce44ca to
6d0f807
Compare
Use d3d11 to create and hold context for a specific gpu until login as a way to keep high performance gpu as a current gpu.