-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cache available recipe list in craft menu
when filling in the recipe result pane with information about derived crafts, get_group_available_recipes and get_available_nested is called every time the ui is navigated. this makes it slow to scroll through the recipes or batch craft list, and i don't think is necessary since the available recipes aren't changing while the menu is open. stash the available recipes in the character for reuse and then invalidate the list once we exit the craft menu. for me, this makes the craft menu much more responsive, especially on debug/non-lto builds where it is not optimized well.
- Loading branch information
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters