All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

Viewer cache size increase to 10GB.

Review Request #318 - Created June 3, 2011 and submitted

Log Linden Reviewers
viewer
er-767, er-883, er-883
None viewer-development
This patch increases the maximum and default viewer cache size values. Due to limitations in the size of the VFS, the 80/20 texture cache/VFS split is maintained up to 5GB, then the remaining cache size is given to the texture cache. This caps the VFS size at 1GB ( up from .2 GB ).  I made corresponding changes to the XUI to allow the slider to increase to the new cache size maximum.

Bugfixes:
* The reset cache location button will no longer tell the user that the cache will be cleared if the cache is already in the default location.  Only the notification was suppressed, the cache was never cleared by this button unless the location changed.
* The reset cache location button will now correctly clear the old cache when it is reset back to the default location. 
* I fixed an order of operation programming error in an llerrs log message in the lltexturecache.cpp. This was showing wildly incorrect texture cache size during a purge.
* Code convention cleanup in llappviewer.cpp in initCache() and lltexturecache.cpp
I have built and tested on all three platforms.  The log files indicate that the caches are being initialised with the correct sizes.
Posted (June 4, 2011, 4:32 a.m.)

   

  
indra/newview/llfloaterpreference.cpp (Diff revision 2)
 
 
 
 
 
 
I would prefer to see this done the other way (even though it produces a larger diff); test for the positive condition and enclose the resulting action in the 'then' block.

I dislike early returns.  While they are sometimes justifiable in a large routine for unusual cases, I don't think this fits that bill.

Not a show stopper, just a note for the future
Ship it!
Posted (June 4, 2011, 4:32 a.m.)