From: Erik H. <er...@eh...> - 2006-04-21 07:29:30
|
Melchior FRANZ wrote: > 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! A few weeks back I already had a hunch something like this was happening (back when I used the sun halo texture for the runway lights). The best way to handle this is to create a caching mechanism where the absolute path of the texture is the key and the texture-id is cached for future use. Erik -- http://www.ehtw.info (Dutch) Future of Enschede Airport Twente http://www.ehofman.com/fgfs FlightGear Flight Simulator |