Blender Git Commit Log

Git Commits -> Revision 3ce280e

Revision 3ce280e by Brecht Van Lommel (master)
July 8, 2013, 17:56 (GMT)
Fix #35960, #36044: blender internal viewport rendering crash while editing data.
Now the viewport rendering thread will lock the main thread while it is exporting
objects to render data. This is not ideal if you have big scenes that might block
the UI, but Cycles does the same, and it's fairly quick because the same evaluated
mesh can be used as for viewport drawing. It's the only way to get things stable
until the thread safe dependency graph is here.

This adds a mechanism to the job system for jobs to lock the main thread, using a
new 'ticket mutex lock' which is a mutex lock that gives priority to the first
thread that tries to lock the mutex.

Still to solve: undo/redo crashes.

Commit Details:

Full Hash: 3ce280e825cdd7bcbdd58cb10537a2aa11119ee3
SVN Revision: 58080
Parent Commit: 861f9e1
Lines Changed: +146, -18

8 Modified Paths:

/source/blender/blenlib/BLI_threads.h (+12, -0) (Diff)
/source/blender/blenlib/intern/threads.c (+46, -0) (Diff)
/source/blender/editors/render/render_internal.c (+11, -2) (Diff)
/source/blender/render/extern/include/RE_pipeline.h (+1, -0) (Diff)
/source/blender/render/intern/source/convertblender.c (+13, -7) (Diff)
/source/blender/render/intern/source/pipeline.c (+5, -2) (Diff)
/source/blender/windowmanager/intern/wm_jobs.c (+55, -7) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021