How to test for video memory?
Hi,
I''m currently trying to figure out a way to test for the amount of video memory present in the video card installed in a users system.
Any good suggestions for how to do this? The target platform is Windows 95/98/ME and Windows NT4.0/2000.
Essentially, I''d like to automatically set some texture options, and I can easily see this being broken down by category:
less than 16 MB
16 MB
32 MB
64 MB or more
Any help would be much appreciated -
Marc Jensen
If your using DirectX you can use GetCaps() to do it:
DDCAPS ddc;
memset(&ddc,0,sizeof(ddc));
ddc.dwSize = sizeof(ddc);
lpdds->GetCaps(&ddc,NULL);
ddc.dwVidMemTotal // Total memory
ddc.dwVidMemFree // Free memory
- Goblineye Entertainment
The road to success is always under construction
DDCAPS ddc;
memset(&ddc,0,sizeof(ddc));
ddc.dwSize = sizeof(ddc);
lpdds->GetCaps(&ddc,NULL);
ddc.dwVidMemTotal // Total memory
ddc.dwVidMemFree // Free memory
- Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction
I would like to comment that the dwVidMemTotal field, doesn''t return ALL videomemory present. It is all the video memory minus the size of the structs that the driver uses to store stuff.
Does anyone know where I can find the REAL amount of total video memory?
"Now you will see time life music commercials for the rest of your life, no forever! Bwahaha!"
"Nooooooooo!!!!!!!!!!"
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
Does anyone know where I can find the REAL amount of total video memory?
"Now you will see time life music commercials for the rest of your life, no forever! Bwahaha!"
"Nooooooooo!!!!!!!!!!"
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
Sludge Softwarewww.sludgesoft.comDeveloping a secret of mana style role-playing-game
Hmm the "total" is the mem available to DirectX. Maybe try adding the memory required for the current resolution? Like 1280x960x4 (32 bit = 4 byte)
Just an idea...
- JQ, PWC Software
"There are no pessimists, optimists and realists; just pessimists and optimists who think they're realists" -me
Just an idea...
- JQ, PWC Software
"There are no pessimists, optimists and realists; just pessimists and optimists who think they're realists" -me
~phil
Ah, also a thing I forgot to mention. It should be this formula:
PhysicalMemOnVCard=dwVidMemTotal+PrimarySurfaceMemory+NeededForDrivers.
The last one is the one I''m looking for, but thanks anyway.
"Now you will see time life music commercials for the rest of your life, no forever! Bwahaha!"
"Nooooooooo!!!!!!!!!!"
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
PhysicalMemOnVCard=dwVidMemTotal+PrimarySurfaceMemory+NeededForDrivers.
The last one is the one I''m looking for, but thanks anyway.
"Now you will see time life music commercials for the rest of your life, no forever! Bwahaha!"
"Nooooooooo!!!!!!!!!!"
Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
Sludge Softwarewww.sludgesoft.comDeveloping a secret of mana style role-playing-game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement