* Curtis L. Olson -- Wednesday 22 March 2006 23:16: > someone has reported to me that they believe that the .ac > loader is leaking memory in terms of texture loading.
Which version? The loader itself (plib) shouldn't leak anything. Textures are refcounted like everything else, and freed if there's no user left. But ... > In other words, an OBJECT_STATIC is loaded and unloaded as we would > want when a tile is loaded or unloaded, but the associated textures > are not unloaded. As I posted in thread "model accumulation" on Sat, 25 Feb 2006 23:08:04 we didn't unload static objects *at all*, until recently. So maybe this is what the complaint stems from. Since two weeks we *do* unload OBJECT_STATIC with the bucket branch, but still not OBJECT_SHARED, random objects, and objects managed by FGModelMgr. (And unloading those three types would probably not be such a bright idea.) > there is still a big memory leak as we fly, and he thinks it is that > textures are not being freed. Depends on the fgfs version. We never free some memory until exit -- the whole scene graph, for example. We apparently rely on the OS to do that. No idea if we keep grabbing memory needlessly, without ever freeing it at runtime. m. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel