Skip to content

Cache tooltip assets - #10311

Merged
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
meehl:preload-tooltip-headers
Oct 29, 2026
Merged

LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
meehl:preload-tooltip-headers

Conversation

@meehl

@meehl meehl commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Cache tooltip header, influence icon, and separator image handles.

This solves two problems:

  • Item influence icons were being allocated and loaded on every frame while the tooltip was open.
  • Every tooltip was allocating and loading its own header and separator images, even though most of them share the same images.

As a consequence, tooltip assets now stay loaded and do not get freed. This is fine because they're fairly small and commonly used anyway.

This solves two problems:
- Item influence icons were being allocated and loaded on **every**
  frame while the tooltip was open.
- Every tooltip was allocating and loading its own header and separator
  images, even though most of them share the same images.

As a consequence, tooltip assets now stay loaded and do not get freed.
This is fine because they're fairly small and commonly used anyway.
@meehl
meehl force-pushed the preload-tooltip-headers branch from 5dd7fa2 to 2a74aa3 Compare August 30, 2026 21:48
@LocalIdentity LocalIdentity added the technical Hidden from release notes label Oct 29, 2026
@LocalIdentity
LocalIdentity merged commit d7d2bae into PathOfBuildingCommunity:dev Oct 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technical Hidden from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants