Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-02-21 12:44:36 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-02-21 12:44:36 +0300
commitfe1a508e551bc8309f552d69da0b74f7f5f5d46f (patch)
tree879330283c66a8600cd4736d44e96955cf887862 /source/blender/blenkernel/intern/scene.c
parent2e73efa9b8d32de57fbf27657273f2d1b078010a (diff)
Depsgraph: Split debug flags
Now it's possible to have debug messages for following things: - Graph construction - Graph evaluation - Graph tagging
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r--source/blender/blenkernel/intern/scene.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c
index 2e5b14cd902..3f27e136e8c 100644
--- a/source/blender/blenkernel/intern/scene.c
+++ b/source/blender/blenkernel/intern/scene.c
@@ -1568,7 +1568,7 @@ static void scene_update_object_func(TaskPool * __restrict pool, void *taskdata,
double start_time = 0.0;
bool add_to_stats = false;
- if (G.debug & G_DEBUG_DEPSGRAPH) {
+ if (G.debug & G_DEBUG_DEPSGRAPH_EVAL) {
if (object->recalc & OB_RECALC_ALL) {
printf("Thread %d: update object %s\n", threadid, object->id.name);
}
@@ -1621,7 +1621,7 @@ static void print_threads_statistics(ThreadedObjectUpdateState *state)
{
double finish_time;
- if ((G.debug & G_DEBUG_DEPSGRAPH) == 0) {
+ if ((G.debug & G_DEBUG_DEPSGRAPH_EVAL) == 0) {
return;
}
@@ -1739,7 +1739,7 @@ static void scene_update_objects(EvaluationContext *eval_ctx, Main *bmain, Scene
}
/* Those are only needed when blender is run with --debug argument. */
- if (G.debug & G_DEBUG_DEPSGRAPH) {
+ if (G.debug & G_DEBUG_DEPSGRAPH_EVAL) {
const int tot_thread = BLI_task_scheduler_num_threads(task_scheduler);
state.statistics = MEM_callocN(tot_thread * sizeof(*state.statistics),
"scene update objects stats");
@@ -1758,7 +1758,7 @@ static void scene_update_objects(EvaluationContext *eval_ctx, Main *bmain, Scene
BLI_task_pool_work_and_wait(task_pool);
BLI_task_pool_free(task_pool);
- if (G.debug & G_DEBUG_DEPSGRAPH) {
+ if (G.debug & G_DEBUG_DEPSGRAPH_EVAL) {
print_threads_statistics(&state);
MEM_freeN(state.statistics);
}