Copyright (c) 2025 - Alex Huitric
This repo is for a small tool that can be run directly from windows explorer or from cmd, and it outputs a list of display adapters detected by windows, along with some details about each.
The purpose of this tool is for easily retrieving the display adapter LUID numbers for manually configuring programs such as modern games, which often use display adapter LUID numbers to determine which GPU that the user has selected for them to use.
Sometimes a game may automatically pick the wrong GPU and crash before you can access the in-game settings menu, so this tool is meant to provide an alternative means to get the LUID.
This program does not need installation, you can just download, extract, and run the program directly.
Lets take the example of a game that is inappropriately trying to run on your igpu. You want to set it to run on your discrete gpu, but the game crashes before you can reach the settings menu.
The game might be looking for a device with an LUID of (for example) 92642 in its settings file. The ID it could be looking for might be different, even for the same model if igpu in the same model of PC, the provided number is just an example.
If we run this program, we can see that we get the following (example) output:
Adapter Description: AMD Radeon RX 7900 XTX
Adapter VRAM: 23.9844GB (Dedicated) + 0GB (System Dedicated) + 31.5742GB (Shared)
Adapter LUID (Upper 32 bits): 0
Adapter LUID (Lower 32 bits): 80295
Adapter LUID (Full): 80295
Monitors on this adapter:
----------------------------------
Monitor Device Name: \\.\DISPLAY1
Monitor Desktop Coordinates: (0,0) to (3840,2160)
----------------------------------
--------------------------------------
Adapter Description: AMD Radeon(TM) Graphics
Adapter VRAM: 0.4744GB (Dedicated) + 0GB (System Dedicated) + 31.5742GB (Shared)
Adapter LUID (Upper 32 bits): 0
Adapter LUID (Lower 32 bits): 92642
Adapter LUID (Full): 92642
No monitors found on this adapter
--------------------------------------
Adapter Description: Microsoft Basic Render Driver
Adapter VRAM: 0GB (Dedicated) + 0GB (System Dedicated) + 31.5742GB (Shared)
Adapter LUID (Upper 32 bits): 0
Adapter LUID (Lower 32 bits): 102330
Adapter LUID (Full): 102330
No monitors found on this adapter
--------------------------------------
(Press Enter to close this program)
From the output, we can see that 92642 is the LUID for the igpu, not the dgpu, which has an LUID of 80295 (for example) instead, which you can then try using in the settings file for the game.