On Mac OS X /usr/sbin/system_profiler -xml returns the system profile
in xml. The tag spdisplays_vram gets you the VRAM size.
--Bruno
On 15.09.2006, at 22:01, Joshua Smith wrote:
I need to know the total video memory of the user's graphics card,
in order to optimize content to perform well on that card. For
example, if the user has an NVIDIA Quadro 3450 with 256M, I want to
know "256M". Anybody have a strategy for getting this reliably?
Preferably cross-platform, but platform-specific if need be?
GraphicsDevice.getAvailableAcceleratedMemory is useless, because it
reports -1 when the card can accelerate out of system memory, which
means it pretty much always reports -1 on all cards, because any
AGP or PCIE card can do that.
I found a tech note for how to do this with Objective C:
And there seems to be a windows way using Direct3D:
GetAvailableTextureMem
I'm using JOGL in this app, but the OpenGL guys seem really intent
on keeping applications from getting a straight answer to this
simple question.
I'm hoping there's a less nasty way to do this from my Java app.
Any leads?
-Joshua
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/bruno.schaeffer%
40canoo.com
Beyond AJAX - Java Rich Internet Applications http://www.canoo.com/ulc
------------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden