Page MenuHome

Point Cache: use job system for bake operators.
ClosedPublic

Authored by Kévin Dietrich (kevindietrich) on Jan 12 2016, 5:12 PM.

Diff Detail

Repository
rB Blender
Branch
pointcache_job

Event Timeline

Kévin Dietrich (kevindietrich) retitled this revision from to Point Cache: use job system for bake operators..
Kévin Dietrich (kevindietrich) updated this object.
Brecht Van Lommel (brecht) requested changes to this revision.Jan 16 2016, 5:55 PM
Brecht Van Lommel (brecht) edited edge metadata.

It's not thread safe to let the user edit the scene while baking is in progress, try deleting all objects in the scene while it's baking for example. So while using the jobs system is a nice improvement, this still must be a blocking operation.

You could use WM_set_locked_interface to do that (but not make it optional as it is for rendering).

source/blender/blenkernel/intern/pointcache.c
3120

Add baker.bake_job = NULL; here.

3318–3338

I think launching this thread is unnecessary since BKE_ptcache_bake now always runs as part of a job.

So probably this code could be simplified. You can do it as part of this patch or leave a comment in the code for someone to do it later.

source/blender/render/intern/source/pipeline.c
3053

Same.

This revision now requires changes to proceed.Jan 16 2016, 5:55 PM
Kévin Dietrich (kevindietrich) edited edge metadata.
  • Address review points.
  • Avoid launching an extra thread for baking.
This revision is now accepted and ready to land.Jan 16 2016, 8:22 PM
This revision was automatically updated to reflect the committed changes.