Blender Git Loki
Git Commits -> Revision dd15ef2
July 2, 2015, 10:01 (GMT) |
Previews: do not keep preview task and timer running continuously in 'Preview' mode. The task was not so annoying (workers are just sleeping anyway), but having the timer always checking for updates was not so nice. This remains quite minor optimization probably... So now, we do not start anymore preview task when enabling previews. This is deferred to the moment we really need it (i.e. when we cache block of entries currently visible). Preview timer is started at the same time. Further more, when preview task has been inactive for about one second (i.e. all queued previews have been handled, and no new one have been queued), we free it (switching to some kind of 'standby' mode). This also allows to avoid stoping/restarting preview tasks on each redraw when user is scrolling. |
Commit Details:
Full Hash: dd15ef2528fa2c810d1c2ff039d4888e785167d2
Parent Commit: effabf0
Lines Changed: +113, -33
5 Modified Paths:
/source/blender/editors/space_file/filelist.c (+85, -27) (Diff)
/source/blender/editors/space_file/filelist.h (+1, -0) (Diff)
/source/blender/editors/space_file/file_draw.c (+20, -0) (Diff)
/source/blender/editors/space_file/space_file.c (+0, -5) (Diff)
/source/blender/makesdna/DNA_space_types.h (+7, -1) (Diff)
/source/blender/editors/space_file/filelist.h (+1, -0) (Diff)
/source/blender/editors/space_file/file_draw.c (+20, -0) (Diff)
/source/blender/editors/space_file/space_file.c (+0, -5) (Diff)
/source/blender/makesdna/DNA_space_types.h (+7, -1) (Diff)