Page MenuHome

Cache normal/large thumbnails based on display size
AbandonedPublic

Authored by Campbell Barton (campbellbarton) on Nov 2 2020, 11:31 AM.

Details

Summary

Currently thumbnails are always stored LARGE (256x256), even when we're only viewing NORMAL, called regular in the UI.

This patch stores normal sized thumbnails when large thumbnails aren't needed.

This odd behavior was pointed out in D9404: UI: Improved Blend Thumbnails.

Diff Detail

Repository
rB Blender
Branch
TEMP-THUMBNAIL-SIZE (branched from master)
Build Status
Buildable 11047
Build 11047: arc lint + arc unit

Event Timeline

Campbell Barton (campbellbarton) requested review of this revision.Nov 2 2020, 11:31 AM
Campbell Barton (campbellbarton) created this revision.
Campbell Barton (campbellbarton) retitled this revision from Store Normal/Large thumbnails based on zoom level to Store Normal/Large thumbnails based on display size.Nov 2 2020, 12:16 PM
Campbell Barton (campbellbarton) retitled this revision from Store Normal/Large thumbnails based on display size to Cache normal/large thumbnails based on display size.

Don't think it's a good idea to do this, otherwise we have to re-generate everything when user switch to a bigger preview size...

Added comment about that in rBb1213e8cf91667