On Sat, Apr 28, 2012 at 9:28 PM, James Turner wrote:
> One thing I did notice - you're creating a state set for each bin, based on 
> texture. I think you want to globally cache those by texture (all the other 
> parameters are fixed anyway, right?), so that OSG can see that all the 
> prim-sets in different bins share a state set, and hence reduce state changes.

I've just checked in a change so the buildings now use the Effects
system properly,  which includes a global cache of the textures.  This
might help.

(Next step is to add a proper emissive texture for night-time buildings)

-Stuart

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to