On 14.04.2012 15:18, Mathias Fröhlich wrote:
>  > Shader textures are loaded unconditionally, at least into main memory.
>  > Hopefully GPU loading is optional - but I'm not sure.
>
> Textures are loaded in main memory when the model that references them
> is loaded. Handing textures over to OpenGL is done once they are

Right. But some of the "global" shaders always seem to be loaded. For 
example, start at LOWI. Doesn't matter whether shaders are enabled or 
disabled - you still get the warnings about the proprietary 
"sea_foam.dds" textures being loaded. Not sure whether it's really 
referenced by the scenery there - the sea should be really far away ;-).

>  > If someone was looking into improving the effect/texture loading code:
>  > it would be great if loading shader textures could be made optional,
>  > i.e. defer loading them until first access.
> Well, what do you mean with 'first access'?

To somehow create the "effect" object when the model references it, but 
to defer loading the texture until the effect condition becomes true for 
the very first time - which is the moment when the texture is actually 
needed/accessed for the first time. This would keep the feature of being 
able to enable shaders at run-time, while avoiding to waste memory/CPU 
performance on loading unnecessary textures.

>  > As a hard work-around, we could also introduce a new command-line option
>  > to disable shaders support completely (enabling shaders at run-time via
>  > the dialog wouldn't work then). This would help those with weak GPUs/old
>  > systems - and reduce loading times and memory consumption.
> That's actually something I consider having. Also for different reasons.
> All the shader stuff is really nice but there are really use cases out
> there where it does not matter if the chrome is glossy or not. For them
> it's really most important that you get stable 60hz in *any* case. Which
> is still easier to get using the fixed function pipeline.
>
> So again still having that available would be good IMO.

+1

cheers,
Thorsten

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to