Melchior FRANZ wrote :
> OBJECT_STATIC, in turn, are not shared, but freed with the tile. Their
> textures aren't shared either. Would be nice if they did, of course.
> OTOH, most of the static objects have textures that are of no use for
> other models, so it's not a big problem.
>   

Perhaps you already noticed, but I checked a change to model.cxx that
allow PLIB, with its own mecanism, to reuse textures from models to models.

I did it the minimal way, just removing the cache clear after a model
load. We could rewrite ssgLoaderOptions::createTexture to use a map
instead of a linear list to cache the texture name if we think it could
improve that even better. These functions are virtual.

-Fred

-- 
Frédéric Bouvier
http://frfoto.free.fr         Photo gallery - album photo
http://www.fotolia.fr/p/2278  Other photo gallery
http://fgsd.sourceforge.net/  FlightGear Scenery Designer




-------------------------------------------------------
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&kid0709&bid&3057&dat1642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to