Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-09-15 13:51:13 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-09-15 14:57:47 +0300
commit860e25fe29c3f6732860c23dccb1f4813d4e387e (patch)
treee8894268e6041e47c2f5b2ff9e9682e345a0812f /source/blender/editors/space_file/filesel.c
parent0c2be4d8e853a4c38f073921e9f01a4a7eeae945 (diff)
Fix T46093: Thumbnails/previews of materials/textures not displaying in Blender filebrowser when only one thread is available.
Using the global scheduler here is not a really good idea - `filelist_cache_previewf()` is not a short task that run once, but it's a loop that keeps cheking for work in a TODO queue. This means it won't quickly allow other tasks to start, so it should not be in the global scheduler. In fact, asynchronous tasks (that is, tasks that will live for quite a bit of time, and often sleep a lot) should never use global scheduler, they would steal computing resources from heavy-duty, short-time living ones - and possibly even completely stall threaded tasks (if all worker threads are executing long-life tasks...). We could probably even completely bypass the scheduler/task thing here (and directly use threads), but it does not have that much of an over-head, and still offers easy handling of threading stuff...
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
0 files changed, 0 insertions, 0 deletions