VRAM query

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
amartin
Posts: 1
Joined: Thu Dec 04, 2008 1:53 pm

VRAM query

Post by amartin »

Hi, I am working on a Linux system with and on-board video card, and I have a limited amount (16MB) of VRAM available to cache textures for applications. I am wondering if there is a way through the Irrlicht Engine I can query the system to find what the current available VRAM left on my graphics card is.

This would be helpful because I am trying to keep textures in VRAM that I use/change/(basically call addTexture and removeTexture on certain objects that use these) often and don't want to take a performance hit I am seeing right now by moving them to and from my on-board card. If I could find out how much VRAM is currently used, I could at least force no more textures onto it, or warn myself, or at least make it more apparent when I exceed that available amount.

I am fairly new to using this engine and am continuing to look into this, but If anyone knows of a way within the engine (maybe through the device?) that I could query the on-board card for the amount of used/available VRAM please help. Thanks in advance.
Post Reply