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

GPU max frequency always 0 under Win32 D3D #65

Open
Withaust opened this issue Mar 19, 2023 · 1 comment
Open

GPU max frequency always 0 under Win32 D3D #65

Withaust opened this issue Mar 19, 2023 · 1 comment

Comments

@Withaust
Copy link

It happens for both discrete and integrated video cards with DX detection for some reason.

@Withaust Withaust changed the title device_properties_t.max_frequency always returns 0 device_properties_t.max_frequency always returns 0 Mar 19, 2023
@nabijaczleweli
Copy link
Collaborator

Yes:

infoware/src/gpu/d3d.cpp

Lines 60 to 63 in 29538ab

devices.push_back({vendor_from_name(device.vendor_name), device_name, adapterdesc.DedicatedVideoMemory, adapterdesc.SharedSystemMemory,
// TODO: there's purportedly (https://en.wikipedia.org/wiki/Windows_Display_Driver_Model#WDDM_2.3)
// a Windows API for getting the max clock, but I haven't been able to find it or use it
0});

This is available through OpenCL only at present. I don't immediately see a way to see this documented in the D3D API either.

@nabijaczleweli nabijaczleweli changed the title device_properties_t.max_frequency always returns 0 GPU max_frequency always 0 under Win32 D3D Mar 19, 2023
@nabijaczleweli nabijaczleweli changed the title GPU max_frequency always 0 under Win32 D3D GPU max frequency always 0 under Win32 D3D Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants