Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Drag and drop UI performance improvements #51

Merged
merged 3 commits into from
Apr 22, 2022

Conversation

benhoneywill
Copy link
Owner

@benhoneywill benhoneywill commented Apr 22, 2022

There were reports of serious performance issues in large inventories within the drag and drop interface. I have mitigated some of these issues by doing the following:

  • Remove the GearCardContext and keep that state local
  • Memoize where possible, especially the functions that render the gear card menus
  • Lazy load the content of popups within each gear card so they don't all have to be rendered up front

It would still be nice to figure out list virtualization (#24) which would help improve the performance here further but these changes help a lot.

@benhoneywill benhoneywill merged commit 26409ae into main Apr 22, 2022
@benhoneywill benhoneywill deleted the dnd-performance-improvements branch April 22, 2022 22:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant