RE: [GD-Windows] How to determine total physical memory available ?
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2004-01-26 21:21:22
|
I'm pretty sure that's not what it's doing. DRAM comes in 1 MB modules, and 2MB modules, and 4 MB modules, and ... There is no law that memory comes installed in powers of two, and in fact, two out of my five machines have non-power-of-two configurations (384 and 768). Note that some machines set aside more memory for frame buffer use (Intel Extreme, etc) -- it's un-clear whether you'd WANT to count this towards available memory. If the machine has 256 MB of RAM, but 64 MB of that is taken up for framebuffer and texture memory, then you're really running on a 192 MB machine for all intents and purposes, with a 64 MB graphics card. Except the graphics card and CPU fight for the single memory bus, causing slower performance than you'd otherwise expect out of the "rated" memory subsystem (i e DDR266 performs like PC133). Cheers, / h+ -----Original Message----- From: gam...@li... [mailto:gam...@li...]On Behalf Of Timur Davidenko Sent: Monday, January 26, 2004 12: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...] 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étourneau 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 |