mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2033] [Issue]: Tauri dev image grids decode full-size assets before thumbnails #994
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#994
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 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2033
Originally assigned to: @Promansis on GitHub.
Summary
Tauri desktop dev image-heavy surfaces can lag because embedded mode renders local full-size asset URLs before async thumbnail resolution finishes. The managed HTTP cache path used by remote runtime does not help the embedded Tauri first paint.
Expected behavior
Tauri desktop should use the same fast thumbnail-first behavior as remote/HTTP image delivery for repeated image surfaces such as avatar lists, game asset grids, background pickers, and gallery cards.
Actual behavior
In embedded Tauri, remote managed asset URLs are unavailable, so components often initialize with convertFileSrc/full-size file URLs, then call Tauri commands to generate or resolve thumbnails afterward. This can force full-size image decode on first paint and cause visible lag, especially in dev/debug builds.
Steps to reproduce
Impact area
Environment
Logs, screenshots, or video
Static code evidence: local-file-api returns remote managed asset URLs only when remoteRuntimeTarget exists, otherwise embedded Tauri components fall back to local file URLs before async thumbnail resolution.
Regression notes
Legacy main served images through local API routes with aggressive cache headers, but did not solve the embedded Tauri refactor path. Refactor has thumbnail commands but repeated surfaces still often mount full-size sources first.
Additional context
Likely fix direction: expose a thumbnail-first local fast path for embedded Tauri by resolving local thumbnails before mounting full-size images in repeated surfaces, and keep full-size URLs for preview/detail views only.
Template check