On Jan 21, 2008 4:03 PM, till busch wrote:

> hi all,


Hi Till,

I don't know all the nuances of the OSG branch and OSG usage, but originally
the common material library textures were all loaded at start time so they'd
be available at any time and not hit the fps like they would if they needed
to be loaded on demand.  Then we bumped up the reference count by one so
they would never be deleted from the system.

Regards,

Curt.

i have continued my random optimizations to flightgear (and simgear, this
> time).
>
> changes in the attached diffs
> =================
>
> in simgear:
>  * made textures load on demand when SGMaterial::get_state() is first
> called
>    (the only drawback so far is get_state() becoming non-const)
>  * osg::State held a reference to its "parent" material in userData - this
> prevented the reference count for SGMaterial from dropping to 0


Regards,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to