[WIN32] Detect GPU & System Speed

Hi List!
Is it possible and if yes, how does it work to detect the GPU and the
CPU-o2-Speed under a windows platform? If there were any
platform-independant methods, they’d be welcom, too.
I’d like to have this in my demo as I don’t know how to use those
MS-Widgets for making a selector-window where you could setup
screen/window-size and OpenGL-Attributes (basically the bpp).
???
Thanks for Help!
St0fF.

I know a couple of things here…

GetSystemInfo() will tell you the CPU count, type, and revision.
GetSystemMetrics() will tell you how many monitors there are, and
"SM_SLOWMACHINE"… I don’t know how it knows you have a slow machine.

To get speed information, after getting the CPU count, the only way I know
is with the registry key:

\HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0

The video card, I know you can query some information from the registry,
too.
\HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\VIDEO
Lists the devices, and a path in the registry to more details on them.

I only have NT here, so the registry keys may not be available on other
machines, but the GetSystem* commands should be.

For unix, the standard sysconf() and sysinfo() functions are handy, as well
as processor_info(). (I have only used processor_info on solaris, though,
so it might not be standard).

Jamie

|---------±------------------------------------->
| | St0fF 64 |
| | |
| | |
| | Sent by: |
| | sdl-admin at libsdl.org |
| | |
| | |
| | |
| | 03/23/02 04:05 PM |
| | Please respond to sdl |
| | |
|---------±------------------------------------->

------------------------------------------------------------------------------------------------------------------|
| |
| T |
| To: sdl at libsdl.org |
| cc: |
| |
| bcc: |
| Subject: [SDL] [WIN32] Detect GPU & System Speed |
------------------------------------------------------------------------------------------------------------------|

Hi List!
Is it possible and if yes, how does it work to detect the GPU and the
CPU-o2-Speed under a windows platform? If there were any
platform-independant methods, they’d be welcom, too.
I’d like to have this in my demo as I don’t know how to use those
MS-Widgets for making a selector-window where you could setup
screen/window-size and OpenGL-Attributes (basically the bpp).
???
Thanks for Help!
St0fF._______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl