[osg-users] Basic memory usage question

Paul Martz pmartz at skew-matrix.com
Tue Jul 24 13:47:33 PDT 2007


> But when I converted my model to an .osg file to look at it, 
> it seems to have UnRefImageDataAfterApply TRUE lines with all 
> the textures.
> 
> So maybe this isn't my doubling memory issue?, but I'm not 
> sure what else it could be.

You mentioned display lists previously, that could explain part of it.

Also, note that texture objects are potentially 33% larger than the image
data due to mipmapping. Although they're stored on the graphics card, device
drivers typically shadow them in host memory. So, even if you remove/delete
your application copy, total host RAM consumption due to textures should be
33% larger (as opposed to 133% larger if you had kept your application
copy).

You've gone from 800MB after initial load to 1.6GB during rendering and
viewing all LODs; that doesn't seem out of the ordinary to me.
   -Paul



More information about the osg-users mailing list