[sldev] Texture caching/bandwidth/performance how to proceed

Dale Mahalko dmahalko at gmail.com
Sat Jun 7 13:36:27 PDT 2008


It looks like the setting in XML is forced down to 1 gigabyte:


http://svn.secondlife.com/trac/linden/browser/release/indra/newview/llappviewer.cpp

2624         LLSplashScreen::update("Initializing Texture Cache...");
2625
2626         // Init the texture cache
2627         // Allocate 80% of the cache size for textures
2628         BOOL read_only = mSecondInstance ? true : false;
2629         const S32 MB = 1024*1024;
2630         S64 cache_size = (S64)(gSavedSettings.getU32("CacheSize")) * MB;
2631         const S64 MAX_CACHE_SIZE = 1024*MB;
2632         cache_size = llmin(cache_size, MAX_CACHE_SIZE);
2633         S64 texture_cache_size = ((cache_size * 8)/10);
2634         S64 extra =
LLAppViewer::getTextureCache()->initCache(LL_PATH_CACHE,
texture_cache_size, read_only);
2635         texture_cache_size -= extra;
2636
2637         LLSplashScreen::update("Initializing VFS...");
2638
2639         // Init the VFS
2640         S64 vfs_size = cache_size - texture_cache_size;
2641         const S64 MAX_VFS_SIZE = 1024 * MB; // 1 GB
2642         vfs_size = llmin(vfs_size, MAX_VFS_SIZE);

So, max cache size = 1024 * 1024 * 1024 = 1 gigabyte
Texture cache size = 80%
VFS cache size = 20%


- Scalar Tardis / Dale Mahalko


On Fri, Jun 6, 2008 at 2:40 PM, Soft <soft at lindenlab.com> wrote:
> You may be overthinking this. Simply raising the limit from 1 gig to a
> much larger number would be sufficient. I wouldn't be surprised if
> that number were in the xml for the network preferences panel, not the
> viewer source, even.
>


More information about the SLDev mailing list