Blender Git Commit Log

Git Commits -> Revision 9d7422b

Revision 9d7422b by Germano Cavalcante (master)
November 16, 2021, 17:10 (GMT)
File Browser: Improve usage of threads in the creation of thumbnails

Due to asynchronous process, the preview for a given image may be
generated several times.

This regenerates many thumbs unnecessarily.

The solution is to add the `FILE_ENTRY_PREVIEW_LOADING` flag for file
entries that are still in the thread queue.

So this flag is checked not to redraw the thumb when it is still being
created on a different thread.

Differential Revision: https://developer.blender.org/D11150

Commit Details:

Full Hash: 9d7422b817d143b4c50c00c7d5b860a9e414c517
Parent Commit: 9172182
Lines Changed: +20, -12

2 Modified Paths:

/source/blender/editors/space_file/filelist.c (+15, -11) (Diff)
/source/blender/makesdna/DNA_space_types.h (+5, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021