-
Notifications
You must be signed in to change notification settings - Fork 87
Async Inventory Loading Implementation #4893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/2025.08
Are you sure you want to change the base?
Conversation
- various improvements - lazily creates the UI wigets for categories when their parent is expanded
Allow builds to be manually triggered
|
|
||
| LLXMLNodePtr referenced_xml; | ||
| std::string xml_filename = mXMLFilename; | ||
| const std::string& xml_filename = mXMLFilename; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Holding a reference to mXMLFilename seems pointless as it's only used in the following if-check now.
|
|
||
| namespace | ||
| { | ||
| class LLAsyncInventorySkeletonLoader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this class into its own file maybe?
| mSawCurrentOutfitFolder = true; | ||
| LLViewerInventoryCategory* cof = gInventory.getCategory(cof_id); | ||
| const S32 cached_version = gInventory.getCachedCategoryVersion(cof_id); | ||
| if (isCategoryUpToDate(cof, cached_version)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add to test plan:
- Log in on machine A. Log out
- Wear an outfit with multiple items of the same type on machine B. Log out.
- Log in on machine A. Change outfit order. Log out.
- Log in on machine B. Confirm order of items.
| // If we run out of time, this still should create root folders | ||
| buildNewViews(gInventory.getRootFolderID()); // My Inventory | ||
| buildNewViews(gInventory.getLibraryRootFolderID()); // Library | ||
| // Build only root widgets - children will load on-demand when expanded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loading 'on demand' potentilly breaks search (assuming it's permanent and not 'on demand untill something in the background eventually gets to it'.
Things to test:
- Recent tab should show recent items since last logoff
- Favorites tab should populate
- Create an item, assign a texture, relog, confirm texture was selected in picker.
Summary:
Introduces asynchronous inventory skeleton loading via AIS to accelerate login (up to 12s faster for 100k+ item inventories) by hydrating from cache, fetching essentials on-demand, and throttling UI updates. Adds debug settings for concurrency/timeouts, fixes cache persistence/dehydration, and optimizes UI with lazy folder widget creation (O(n) parent-child mapping via caching).
Testing:
QA-only
ForceAsyncInventorySkeletontoggle; monitor login times/cache integrity. No breaking changes.