1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Improve Create Dialog search ranking and refactor calculation.

Code changes:
 - Improved search ranking with various features (position in type string, string length proportion, in favorite list, in recent list).
 - Recent items are now stored in an ItemList (no visual change).
 - Removed results that had a parent that matched the search term to improve clarity.

Performance:
 - Reduce types to process upon opening the dialog (instead of every search change), reduces number of types by 4~5.
 - Clear arrays after closing dialog instead of keeping them.
 - Various other optimizations.
This commit is contained in:
Stijn Hinlopen
2020-06-30 16:19:01 +02:00
parent c069f5f5ca
commit 85ced4746f
2 changed files with 433 additions and 533 deletions

File diff suppressed because it is too large Load Diff