gboisse / gfx

A minimalist and easy to use graphics API.
MIT License
502 stars 36 forks source link

Set AMD and NVIDIA GPUs to the same adaptor score. #141

Closed maoliver-amd closed 3 months ago

maoliver-amd commented 3 months ago

Currently we are prioritising AMD GPUS with a higher adapter score. This has issues with newer Zen 4 and 5 CPUs as they contain a iGPU which is being given a higher priority over discrete cards from other manufacturers. This is a simple change that gives AMD and NVIDIA the same score which then relies on the physical memory check to then order them correctly. Fixes an issue on Zen5 CPU with NVIDIA GPU whereby iGPU was always being selected.

I also added support for using EnumAdapterByGpuPreference which will use windows inbuilt gpu sorting to order adapters by performance