Posted: 9th Jun 2007 18:33
is there anyway i can get the following information inside a DBPro program?!

graphics memory installed
graphics memory available
RAM installed
RAM available
CPU / GPU tempratures
CPU useage

i'm guessing it would be an API or something but i have no clue whatsoever about them!

thanks!
Posted: 9th Jun 2007 19:31
You can probably get all of those except for possibly the temperature ones.

I don't know the specific dll calls you'd need, but the basic syntax will go something like this:

+ Code Snippet
global user32num
global kernel32num
user32num = 1
kernel32num = 2

`~~~~~~~~

function desktopWidth()
local returnval
returnval = call dll(user32num,"GetSystemMetrics",0)
endfunction returnval



And it could get more complicated if the call returns a structure rather than a string or integer.

Here are some starting points in the MSDN2 library if you'd like:
http://msdn2.microsoft.com/en-us/library/ms724358.aspx
http://msdn2.microsoft.com/en-us/library/ms683194.aspx
If you look at the other functions in the left bar of the screen you might be able to find an appropriate windows function.

If you find the right function, then the rest is usually fairly straightforward.

-Xol
Posted: 9th Jun 2007 21:04
graphics memory installed:

SYSTEM DMEM AVAILABLE()

Also check out:

SYSTEM SMEM AVAILABLE()
SYSTEM TMEM AVAILABLE()

The others you would need a dll for, but only if you have a Windows program installed already to view the info. This is because I believe that things like viewing the CPU temp tend to be only with utilities supplied with the motherboard and might not be included in a Windows dll.

TDK_Man
Posted: 10th Jun 2007 6:40
I wrote a freebie ages ago that does a lot of this for you.
it was called dbp diag if you want a copy.

it has a minor issue with ip collection.
Posted: 10th Jun 2007 14:27
that'd be wonderfully fantastic!
Posted: 10th Jun 2007 14:51
You can get quite a bit of info using the standard DBP commands (check out the system commands and 3D Statistic in the F1/help file)but for other information print out the registry values..

(Credit goes to Ric for this info)
print get registry$("HARDWAREDESCRIPTIONSystemCentralProcessor","ProcessorNameString")
print get registry$("HARDWAREDESCRIPTIONSystemCentralProcessor","VendorIdentifier")
print get registry("HARDWAREDESCRIPTIONSystemCentralProcessor","~MHz")
print get registry$("HARDWAREDESCRIPTIONSystemCentralProcessor","Identifier")
wait key

Chech out this DBP CPU/GPU speed benchmark I made here http://forum.thegamecreators.com/?m=forum_view&t=101716&b=5
Posted: 5th Sep 2007 10:11
@GatorHex

How did you get this to work? Your bench prog works for me but when I use the small code posted here I get nothing.

Thanks
Joe

I got it I didn't have a 0 for the dual processor