Hi Paul,

The OSG_MAX_TEXTURE_SIZE is useful for making the OSG build smaller
texture objects, this can help performance diagnostics i.e. set it to
32 and check to see if the framerate improves, if it does then its
likely that you are limited by total texture object size and need to
optimize this.

Beyond the diagnostics and shrinking memory usage I can't think of too
many uses for it.

Robert.

On Nov 6, 2007 10:22 PM, Paul Martz <[EMAIL PROTECTED]> wrote:
>
>
> Hi Robert -- I'm in the middle of writing an environment variable reference,
> and I'm a little confused by OSG_MAX_TEXTURE_SIZE -- what its for, when it
> has an effect, etc.
>
> As near as I can tell, it overrides the _maxTextureSize member variable for
> both Texture and Font, but only if its smaller than the current value
> (which, I assume, comes from OpenGL). However, _maxTextureSize itself only
> appears to be referenced if non-power of 2 textures are not available, in
> which case it's used in the computation to determine the maximum power of 2
> dimension for the texture during resize.
>
> Am I missing something here? Why would a user ever set this?
>
> Thanks. Any additional info will help make this a better document. :-)
>
> Paul Martz
> Skew Matrix Software LLC
> http://www.skew-matrix.com
> 303 859 9466
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to