Attempt to fix #35057, disable threading if diameter of the brush
authorAntony Riakiotakis <kalast@gmail.com>
Mon, 8 Jul 2013 15:35:53 +0000 (15:35 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Mon, 8 Jul 2013 15:35:53 +0000 (15:35 +0000)
commit861f9e10f7ea9d1d38130ecbc983fe8f8dac93d0
treeef12905a6b1f3628f7102f27e094ce64c04f7715
parent27734f5bec7b717e82128e637c805b95e2b0f889
Attempt to fix #35057, disable threading if diameter of the brush
becomes too small. Typically this would happen if the number of buckets
is clipped to the maximum value. This avoids thread overhead.

A better fix might be to do bucket-brush intersection on main thread and
dispatch threads to process bucket hits as they become available. This
way only one thread at most would end up being used in such cases
anyway. A better task scheduler is needed for that though, leaving for
after GSOC.
source/blender/editors/sculpt_paint/paint_image_proj.c