Skip to content

perf: asynchronously load inspector previews - #1537

Merged
CyanVoxel merged 2 commits into
devfrom
perf/async-previews
Oct 9, 2026
Merged

CyanVoxel merged 2 commits into
devfrom
perf/async-previews

Conversation

@CyanVoxel

Copy link
Copy Markdown
Member

Note

This PR is targeting the dev branch for release with Alpha v9.7.

Summary

This PR asynchronously loads inspector previews and stats, and leverages pre-existing cached thumbnails as loading placeholders for images as well as fallback previews for unlinked files.

Images and audio files will use their cached thumbnails if available instead of a loading/default preview icon. Animated images will also show the cached thumbnail which should be the first frame of the animation. Videos don't use loading icons or cached thumbnails (since video thumbs are taken from the middle of the video) and instead will just remain blank until loaded. Fonts don't use cached thumbnails since their thumbnail variant is different from the full preview, and don't use loading icons because the full previews load very quickly. All stats should also load asynchronously and populate the stats area when ready.

The unlinked icon style isn't final, just something to work with for now before I update the icon and decide on a more readable style/approach for unlinked and ignored file icon overlays that also aren't confusing next to badges.

Closes #1389.

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable

@CyanVoxel CyanVoxel added this to the Alpha v9.7.0 milestone Oct 9, 2026
@CyanVoxel CyanVoxel added Type: QoL A quality of life (QoL) enhancement or suggestion Type: UI/UX User interface and/or user experience Type: Performance An issue or change related to performance TagStudio: Thumbs/Previews File thumbnails or previews labels Oct 9, 2026
@CyanVoxel
CyanVoxel merged commit 9e6e078 into dev Oct 9, 2026
12 checks passed
@CyanVoxel
CyanVoxel deleted the perf/async-previews branch October 9, 2026 05:19
@CyanVoxel CyanVoxel linked an issue Oct 9, 2026 that may be closed by this pull request
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TagStudio: Thumbs/Previews File thumbnails or previews Type: Performance An issue or change related to performance Type: QoL A quality of life (QoL) enhancement or suggestion Type: UI/UX User interface and/or user experience

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Use Cached Thumbnails for Unlinked Files

1 participant