diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-08-25 15:15:57 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-08-25 16:59:41 +0300 |
commit | 0fd1e6a5f43df8b0f5382c07975c0d031bbbb506 (patch) | |
tree | 07a7fa7e63b6a741e477b1deec9aa65f0820697d /source/blender/blenloader/BLO_blend_validate.h | |
parent | 5a0ec2302eeb33a03b36f8021bb2338e0dba2ee4 (diff) |
T90908: Reduce loading times when extracting thumbnails from Blendfiles.
Previously when loading an thumbnails for an asset the whole file was
read. Reason this was done was perhaps a future idea to load
all thumbnails inside a blendfile in a single go. This was never implemented
and currently unneeded disk and cpu cycles was spend with finding out what
preview to load.
This patch adds an early break when the thumbnail that the caller is
interested in has been found. This improves the thumbnail extraction
when looking into large files.
Reviewed By: mont29
Maniphest Tasks: T90908
Differential Revision: https://developer.blender.org/D12312
Diffstat (limited to 'source/blender/blenloader/BLO_blend_validate.h')
0 files changed, 0 insertions, 0 deletions