View Full Version : Videomemory
12-10-2001, 09:04 PM
Is it possible from OpenGL to find out how much "high performance memory" (I mean memory for textures) is available and how much is being used just now?
12-12-2001, 07:57 AM
No. It's impossible.
12-12-2001, 08:40 AM
you can use texture proxys to tell if a certain texture will fit in texture memory at a certain time. you might be able to use this to figure out roughly how much memory is available for storing textures, but it probably wont be very accurate, and it will also be slow, so you probably should only do it durring initialization or debugging, not durring drawing...
12-12-2001, 06:12 PM
Thanks for your reply.
If it is not possible directly from OpenGL, is there ANY way how to find out? (I mean I have heard the DirectX can do that, but is there a way that avoids using DirectX)?
thanks in advance
12-12-2001, 06:25 PM
well, you could try add one byte to the proxy texture and loading it untill it wont fit, then thats how much it will hold http://www.opengl.org/discussion_boards/ubb/smile.gif
of course, that doesnt take into account having vertex data in the memory, but it should tell you how much memory there is.
anything else is probably os specific, i dont know of any os specific stuff that will tell you this, but if you say what os you are using, someone else might...
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.