mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1930] Avoid eager base64 payloads when listing sprite libraries #945
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#945
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 @Xelvanis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1930
Originally assigned to: @cha1latte on GitHub.
Summary
Refactor sprite listing reads every sprite file and returns each image as a base64 data URL. Legacy sprite listing returned file-backed URLs with cache-busting metadata, which avoids sending every image byte through the list command.
Expected behavior
Sprite list APIs should return metadata and resolvable managed URLs, so large sprite libraries do not require every image to be base64-encoded into the command response before the UI can render.
Actual behavior
list_sprites_for_dirbuilds each sprite item throughsprite_info_from_path, which returnsurl: data:<mime>;base64,.... UI-side lazy image loading cannot reduce the command payload because all bytes are already in the list response.Evidence:
src-tauri/src/commands/storage/sprites.rs:1624.src-tauri/src/commands/storage/sprites.rs:1632.?v=<mtime>cache busting from thedata/sprites/<id>file store.Steps to reproduce
Impact area
Environment
8c36be60Logs, screenshots, or video
No runtime logs or screenshots. Static parity evidence only.
Regression notes
Legacy sprite listing used file-backed URLs. Refactor appears to send sprite image bytes inline for every listed sprite.
Additional context
This came from parity target 4, media and assets, under #1904. Suggested fix path: return sprite metadata plus managed sprite URLs, and resolve images through the asset URL layer instead of embedding every sprite in the list response.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 2, 2026):
fixed in #1954