You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(account-inventory): fetch item icons lazily during draw
Applying loaded files (and adding live items) called Resources::GetItemImage
for every item, each queuing a DAT icon decode onto the shared worker pool -
tens of thousands of decodes for a full set of account files, the bulk of them
for items that are never displayed (window closed, detailed view, filtered, or
scrolled off).
Fetch the icon in Draw instead, only for the item actually being rendered. The
pointer GetItemImage returns is stable and cached on the Item on first draw, so
it runs once per shown item rather than once per stored item on load. Store the
item's dyes at add time so the on-demand fetch still gets the tinted icon.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit 34f0211)
0 commit comments