I've put a debug message into plib/src/ssg/ssgLoadSGI.cxx to show how much texture memory is used in an almost standard fgfs run with the ufo in KSFO.[3] The message is next to the memory allocation instruction, so it'll most likely be right. Some of the stuff can get deallocated later, though.
See below for the logs -- files are listed as they are loaded into memory. Doubles and *cough* 28-tuples *cough* are listed verbatim. Textures.high: 221,051,328 Bytes total [1] Textures: 170,629,568 Bytes total [2] This is with the following scenarios enabled: aircraft_demo, nimitz_demo, (Georg's) container_demo Note that several textures are loaded multiple times! This is especially painful for textures that are >1MB and don't really contain anything meaningful, such as the Nimitz' red.rgb halo, which is loaded 28 times into memory! m. [1] http://members.aon.at/mfranz/texsize.high [2] http://members.aon.at/mfranz/texsize [3] Index: ssgLoadSGI.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadSGI.cxx,v retrieving revision 1.17 diff -u -p -r1.17 ssgLoadSGI.cxx --- ssgLoadSGI.cxx 14 Mar 2004 11:26:56 -0000 1.17 +++ ssgLoadSGI.cxx 20 Apr 2006 21:13:18 -0000 @@ -258,6 +258,8 @@ ssgSGIHeader::ssgSGIHeader () image_fd = NULL ; } +#include <iostream> +using namespace std; ssgSGIHeader::ssgSGIHeader ( const char *fname, ssgTextureInfo* info ) { ssgSGIHeader *sgihdr = this ; @@ -277,6 +279,8 @@ ssgSGIHeader::ssgSGIHeader ( const char sgihdr->ysize * sgihdr->zsize ] ; + cerr << "PLIB " << fname << " " << sgihdr->xsize * sgihdr->ysize * sgihdr->zsize << endl; + GLubyte *ptr = image ; unsigned char *rbuf = new unsigned char [ sgihdr->xsize ] ; ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel