Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting total video memory?



Hi,

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:

http://developer.apple.com/qa/qa2004/qa1168.html

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


This email sent to email@hidden


------------------------------------------------------------------------
Bruno Schaeffer                                    Tel: +41 61 228 94 44
Canoo                                              Fax: +41 61 228 94 49
Kirschgartenstrasse 7
CH-4051 Basel
http://www.canoo.com                           email@hidden

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

This email sent to email@hidden
References: 
 >Getting total video memory? (From: Joshua Smith <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.