
System inventory log
Posted Thursday, 20 August, 2009 - 08:21 by iliak| Project: | Dungeon Eye |
| Version: | 0.2.0 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | iliak |
| Status: | open |
Jump to:
Description
Add the following to the log :
Operating System (XP, Vista, Seven...)
Amout of RAM
Graphic Card type, available modes and if possibly driver version (don't know how...)
Sound card and available devices


Comments
#1
Driver version:
Note that OpenGL 3.0+ has deprecated StringName.Version in favor of:
You can get available resolutions using the
DisplayResolutionclass. OpenTK doesn't offer a way to request availableGraphicsModeright now (will consider that, please add a feature request if you think this will be useful).#2
Here's my code to log some hw & sw informations :
Here's the output :
Hardware informations : OS : Microsoft Windows NT 6.1.7600.0 Platform : Win32NT SP : Processor count : 2 Software informations : CLR : 2.0.50727.4927 Video informations : Graphics card vendor : NVIDIA Corporation Renderer : Quadro FX 570M/PCI/SSE2 Version : 2.1.2 (0, 0) Display modes Primary: 1680x1050x32@60Hz (198 modes available) Secondary: 1680x1050x32@60Hz (213 modes available)#3
Looks fine. Just note that this part:
will not work on drivers that do not expose OpenGL 3.0 (e.g. older Nvidia/AMD drivers or any driver from Intel, Sis and other vendors). The backwards-compatible way to check for version is to use
GL.GetString(StringName.Version)and try to the parse the string (which tends to change between different drivers or operating systems).#4
Thats is why I display both results.
The next part I would like to display is needed/referenced dlls. This way I can display the version on the client side. I have only found a way to display loaded dll at the time the method is called, it will not output all referenced dll (e.g. my editor use WeifenLuo.WinFormsUI.Docking.dll but not the game itsefl, so it won't display this dll until I call the editor) :