Skip to content

Conversation

@kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Oct 20, 2025

A few merge conflicts had to be resolve given the divergence between develop and release-1.18. Otherwise, a routine release merge.


This change is Reviewable

kwvanderlinde and others added 3 commits October 18, 2025 02:40
`ImageUtil#getTokenImage(Token, ImageObserver[])` is redundant and has been removed. Any callers of this method can
instead just call `Token#getTokenImageAssetId()` followed by `ImageManager.getImage(MD5Key, ImageObserver[])`.

The `TokenRenderer` no longer tries to cache token images per facing, and instead uses the above technique to get the
image each time. This cache wasn't really functional since entries could never be ejected or updated. Being static, this
also meant it was a memory leak as all the images ever cached would be kept in `TokenRenderer#imageTableMap`.
All `null` results from the image table lookup are now guaranteed to use the fallback to `Token#getImageAssetId()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants