mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1938] [Issue]: Large avatar originals cause multi-second INP when opening Characters panel #953
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#953
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1938
Originally assigned to: @Promansis on GitHub.
Summary
Opening the Characters right-panel can produce multi-second INP / click processing when visible character avatars are large original image files. The panel renders small avatar slots, but Tauri desktop currently delivers full-size local avatar PNGs through
asset.localhost, causing oversized image delivery, decode, and resize work during the interaction.Expected behavior
Opening the Characters panel should respond quickly, with list/sidebar/group avatar surfaces using small cached thumbnails or otherwise avoiding full-size avatar decode work for tiny display slots.
Actual behavior
Chrome DevTools Performance recorded a long click interaction when opening the Users / Characters panel:
DevTools image insight for one visible avatar:
asset.localhostavatar PNGFrom cache: NoBlocking the large repeated avatar image requests in DevTools roughly halved the measured INP, strongly pointing to full-size avatar image delivery/decode/resize as the main contributor.
Steps to reproduce
asset.localhost.Impact area
Environment
Logs, screenshots, or video
Relevant DevTools observations:
Pointerinteraction warning: poor page responsiveness.Duration: 2.66sInput delay: 1msProcessing duration: 2,509msPresentation delay: 153msasset.localhost/.../avatars/characters/Akemi.pngRegression notes
Unknown whether this is a regression. The affected path is visible in the refactor Tauri desktop app where managed avatars are served as original local assets.
Additional context
Likely fix direction:
decoding="async"and low fetch priority for non-critical list avatars where appropriate.Akemi.png,Akemi-1.png, etc. files with identical image content.asset.localhostcache behavior for Tauri desktop asset URLs; caching alone will not solve first-load decode cost, but lack of cache worsens repeat interactions.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: