Registriert: Sa Jan 01, 2005 17:11 Beiträge: 2068
Programmiersprache: C++
Then write english Nvidia has a tool that returns the amount of free graficspace.
The size of a texture (without compression) is width*heigth*bytesperpixel
Registriert: Do Sep 25, 2003 15:56 Beiträge: 7810 Wohnort: Sachsen - ERZ / C
Programmiersprache: Java (, Pascal)
I thought that I heared at my university, that there is no (vendor independet) way to check this. I thought that this is one advantage of DX. But I'm not sure about that.
_________________ Blog: kevin-fleischer.de und fbaingermany.com
Registriert: Do Dez 05, 2002 10:35 Beiträge: 4234 Wohnort: Dortmund
Mike Lischke published an sample program with his old header. In this he read some information from the registry. But i think you can't trust this informations. And the other Problem is you don't know how is still avail. If we have other RCs or DX is using textures etc. I think there is also an difference between graphiccard memory and texture memory. I have seen the spec of an 3dlabs Wildcat4. They written "128 MB framebuffer and 256 MB texturememory".
i0n0s: You forgotten the mip maps and some settings in driver. When you use the GL_RGB(A) for textureformat you told the driver to decide the format. Normally it's the quality way of live. But per settings or driverbug it's can be 4 bits instead 8 bits. The best and save way to get the size is to call it from opengl. This only works on OpenGL 1.3 ore with the GL_ARB_texture_compression extension.
Some code from my glBitmap
Code:
if(GL_ARB_texture_compression or GL_VERSION_1_3)thenbegin
To find out if a texture is in graphiccards memory.
Code:
glAreTexturesResident(1,@ID,@IsResident);
If false the Texture was cached in the main memory and transfered via AGP. If you often need the texture it's may be really slow. You can control the caching via then method glPrioritizeTextures.
Registriert: Sa Mai 04, 2002 19:48 Beiträge: 3830 Wohnort: Tespe (nahe Hamburg)
@flash: At least no point for DX, but the underlying OS. As far as I know, it is not possible to gather this information via OpenGL, but the system bellow. So either check the documentation of it or use somekind of wrapper system like SDL. This allows you to get information like the mem of the video card. http://wiki.delphigl.com/index.php/SDL_VideoInfo. Maybe this helps? I never tested this, but should work on all SDL-Systems
_________________ "Light travels faster than sound. This is why some people appear bright, before you can hear them speak..."
Mitglieder in diesem Forum: Google [Bot] und 5 Gäste
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.