Forgot to mention, there are "autotile" and "automip" options to alleviate the problem for such untiled images. This will load an entire row of tiles instead of just one, so it's not quite optimal, but probably on your image it will help a lot.
Brecht. On Tue, Oct 9, 2012 at 5:17 PM, Brecht Van Lommel <[email protected]> wrote: > Hi, > > If it's a png or jpeg file you're using, then it will indeed load the > entire image into memory. Typically you need to run the "maketx" > command first to generate a tiled / mipmapped image file to use > instead. > > Brecht. > > On Tue, Oct 9, 2012 at 4:49 PM, Michel Lerenard > <[email protected]> wrote: >> Hi everyone, >> >> i've bumped into a small issue using the texture system: it does not seem to >> be limited the amount of memory to use. >> >> I'm initializing the class this way: >> >> float m_cache_size = 500; >> m_oiio_texture_system = TextureSystem::create(); >> m_oiio_texture_system->attribute("max_memory_MB", m_cache_size); >> m_oiio_texture_system->attribute("gray_to_rgb", 1); >> >> >> and using it with a simple call to "texture" in an evaluation function. >> I've downloaded a huge map of the earth ( 22k*11k), and the memory raises up >> to 1.6GB, despite the default limit of 256MB. >> I've tried settings higher and lower values, without any difference. >> >> I had a look in the source, but i haven't much: I don't know what i'm doing >> wrong. >> >> I'll take any hint anyone can give me. >> >> Thanks >> >> -------------- >> Michel >> [email protected] >> _______________________________________________ >> Oiio-dev mailing list >> [email protected] >> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
