Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Fr Jul 18, 2025 14:02

Foren-Übersicht » Programmierung » OpenGL
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 6 Beiträge ] 
Autor Nachricht
BeitragVerfasst: Mo Jan 02, 2006 23:57 
Offline
DGL Member

Registriert: Mo Jan 02, 2006 23:41
Beiträge: 2
Wohnort: Belgien
Hallo,

Ich versuche texturen zu laden.
Das geht, und mein GeForge 6800GT hatt 256Mb speicher.

1 textur (256x256) gebraucht speicher auf die karte, aber gibbt es functionen um


A) Zu wissen wieviel speicher ein carte hat.

B) Wieviel speicher nog frei ist?

C) Wieviel speicher 1 single textur braucht ?



Sorry fur mein slechtes Deutsch. Hatte niemals Deutsch auf shüle.


Bart Libert


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Jan 03, 2006 00:24 
Offline
Ernährungsberater
Benutzeravatar

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


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Jan 03, 2006 00:26 
Offline
DGL Member

Registriert: Mo Jan 02, 2006 23:41
Beiträge: 2
Wohnort: Belgien
Yes but I'd like to check it from within my delphi program ?


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Jan 03, 2006 03:28 
Offline
Guitar Hero
Benutzeravatar

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


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Jan 03, 2006 09:10 
Offline
DGL Member
Benutzeravatar

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:
  1. if (GL_ARB_texture_compression or GL_VERSION_1_3) then begin
  2.   glGetTexLevelParameteriv(Target, 0, GL_TEXTURE_COMPRESSED_IMAGE_SIZE, @Size);
  3. end else begin
  4.   Size := 0;
  5. end;

This queued only level 0 from the texture.

To find out if a texture is in graphiccards memory.
Code:
  1.   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.


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Jan 03, 2006 10:11 
Offline
Fels i.d. Brandung
Benutzeravatar

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..."


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 6 Beiträge ] 
Foren-Übersicht » Programmierung » OpenGL


Wer ist online?

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.

Suche nach:
Gehe zu:  
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.009s | 16 Queries | GZIP : On ]