July 2, 2013, 21:56 (GMT) |
Fix issue reported on blenderartists: 2d painting does not respect the brush strength when masking is off. I hope behaviour will at last be consistent in every case now. |
July 2, 2013, 21:47 (GMT) |
fix for own error in 57226, broke subsurf-uv |
July 2, 2013, 21:03 (GMT) |
Fix cycles world ray visibility not working correct with multiple importance sampling. |
July 2, 2013, 20:36 (GMT) |
style cleanup |
July 2, 2013, 19:23 (GMT) |
Fix for dupli-groups update going wrong Dupli-groups used to have special case for updating which is BKE_group_handle_recalc_and_update. This function calls BKE_object_handle_update for every object in the group. This isn't thread-safe, because object could be updating in separate thread already. And what's worse dependencies are not known for objects inside the group, which makes it impossible to schedule objects from the group in a safe way. It's even impossible to schedule groups as different tasks, because groups could share the same objects. For now used simple but robust solution which is updating dupli-groups in main thread, handling groups one-by-one and updating objects from the group one-by-one as well. Will work on a proper solution for this later. |
July 2, 2013, 19:23 (GMT) |
Move bevel list and path from Curve to Object datablock I know this is not so much nice to have this guys hanging around in a general Object datablock and ideally they better be wrapped around into a structure like DerivedMesh or something like this. But this is pure runtime only stuff and we could re-wrap them around later. Main purpose of this is making curves more thread safe, so no separate threads will ever start freeing the same path or the same bevel list. It also makes sense because path and bevel shall include deformation coming from modifiers which are applying on pre-tesselation point and different objects could have different set of modifiers. This used to be really confusing in the past and now dtaa which depends on object is stored in an object, making things clear for understanding even. This doesn't make curve code fully thread-safe due to pre-tesselation modifiers still modifies actual nurbs and lock is still needed in makeDispListsCurveTypes, but this change makes usage of paths safe for threading. Once modifiers will stop modifying actual nurbs, curves will be fully safe for threading. |
July 2, 2013, 19:23 (GMT) |
Fix issue when the same task gets added twice to the queue Issue was caused by worker threads updating nodes valency at the same time while we're filling the queue with "root" nodes (leaf nodes which don't depend on others). |
July 2, 2013, 19:23 (GMT) |
Added missing mutex lock around do_exit assignment in task scheduler Without this lock it's possible that thread_wait_pop will stuck at the point where it await for new task in the queue but in fact exit was requested already. This ended up in deadlock in some circumstances. Really random because it totally depends on timings. |
July 2, 2013, 19:23 (GMT) |
Initial idea of running post-modifiers out of lock wasn't correct The tihng here is: curve is getting modified by modifier stack and then it's coordinates are restored. To be really safe we need to do all this locked. |
July 2, 2013, 19:23 (GMT) |
Add workaroud to make threaded object update stable Added threading lock around unsafe part of do_makeDispListCurveTypes (parts which touches Curve->bev and Curve->path). Namely it means pre-tesselation modifiers, bevel, path and non-modified display list will be calculated inside a locked thread. Post-tessellation modifiers will eb calculated outside of locked thread, which means heavy constructive or deformation modifiers applying on tesselated spline will be nicely threaded. This makes it possible to use threaded object update by default in the branch, so everyone could start testing it. |
July 2, 2013, 19:22 (GMT) |
Get rid of a display list stored in Curve datablock This display list was only used for texture space calculation, and even there this display list was only used for bounding box calulation. Since we alreayd do have boundgind box in a curve datablock there's no reason to duplicate non-modified display list just to calculate bounding box later, let's just calculate boundding box at the first point. This makes code a little be more thread-safe but curves are still not safe for threads at all because of bevel list and path. That would be solved later. |
July 2, 2013, 19:22 (GMT) |
Always use ob->bb when drawing the curve types It used to be a check for ob->bb ? ob->bb : cu->bb but in fact it doesn't make sense and only makes code more crappy. Making displist for mballs and curves/surfaces/fonts already ensures object has walid bounding box. |
July 2, 2013, 19:22 (GMT) |
Replace mutex lock with spinlock in threaded object update It's not so much happening inside the lock and using spin lock instead of mutex lock will give some speedup due to smaller latency of resuming the thread when mutex was locked. |
July 2, 2013, 19:22 (GMT) |
Simplify debug print macro in WM even system |
July 2, 2013, 19:22 (GMT) |
Put debug prints in threaded debug into G.debug & G_DEBUG check. |
July 2, 2013, 19:18 (GMT) |
July 2, 2013, 19:17 (GMT) |
Fix #35966: remesh modifier + particle use modifier stack option did not work well together. |
July 2, 2013, 17:21 (GMT) |
Fix #35964: viewport render not updating with linking materials with ctrl+L. |
July 2, 2013, 16:02 (GMT) |
Fix #35958: texture timeout with value 0 not preserved when saving user preferences. |
July 2, 2013, 15:56 (GMT) |
Fix #35944: adding keyframes or drivers on image sequences offset did not work for cycles image texture node. |
|
|
|


Master Commits
MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021