Skip to content

Cache tooltip assets - #2493

Merged
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
meehl:cache-tooltip-assets
Aug 30, 2026
Merged

Cache tooltip assets#2493
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
meehl:cache-tooltip-assets

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.

PoB1 PR: PathOfBuildingCommunity/PathOfBuilding#10311

meehl and others added 2 commits August 30, 2026 20:53
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.
Unknown tooltip types should use the normal header assets, but the new cache indexed the unknown type directly and crashed.
Resolve unknown types to the normal header before loading and caching their images.
@LocalIdentity LocalIdentity added the technical Hidden from release notes label Aug 30, 2026
@LocalIdentity
LocalIdentity merged commit 061f1b1 into PathOfBuildingCommunity:dev Aug 30, 2026
5 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