RE: [GD-Windows] How to determine total physical memory available ?
Brought to you by:
vexxed72
From: Yannick L. <yle...@ub...> - 2004-01-26 20:21:34
|
Actually it would be a little more complicated since memory can be a = sum of different power of 2 (for example if you have one memory chip of 128 MB = and another of 64 MB totaling 192MB which is not power of 2). I'd rather not make this kind of assumption myself and let the system = give me the exact numbers ;-) -----Original Message----- From: Timur Davidenko [mailto:ti...@cr...] Sent: Monday, January 26, 2004 3:16 PM To: gam...@li... Subject: RE: [GD-Windows] How to determine total physical memory available ? I guess System Information tool just rounds this number to the next "reasonable" number. It knows that memory chips don't come in 1022Mb setups.. So it`s quite easy to round number you get to closest power of 2.. _____________________ Timur Davidenko. Crytek (http://www.crytek.com) -----Original Message----- From: Yannick Letourneau [mailto:yle...@ub...]=20 Sent: Monday, January 26, 2004 8:47 PM To: gam...@li... Subject: [GD-Windows] How to determine total physical memory available = ? I need to determine how much memory is installed on the user's system somehow. I used GlobalMemoryStatus but the values returned in the member = dwTotalPhys is always underestimating a bit. For example on my dev machine it = returns 1022 MB although I have 1024 MB installed. Same thing happens on all systems I've tested. Same thing is reported in dxdiag.exe so they seem to use that function = as well. However, when I use the System Information tool in the system tools of Windows, it correctly reports 1024 MB. So anyone knows how I can get the exact information ? Yannick L=E9tourneau UBISOFT ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5 |