diff options
author | Roman Pogribnyi <pogribnyi@gmail.com> | 2014-10-11 21:39:03 +0400 |
---|---|---|
committer | Roman Pogribnyi <pogribnyi@gmail.com> | 2014-10-11 21:39:03 +0400 |
commit | 065e1a196cb646d1c1a12fa099b5716296fd9ccf (patch) | |
tree | dbb3a9ef6573d3a05f4cf08de0451ad567149219 /source/blender | |
parent | c7c360c573237e33a7bb382fb3face0e6b138968 (diff) |
debug output, smoke BC
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/smoke.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/smoke.c b/source/blender/blenkernel/intern/smoke.c index 1c81aae6678..64513a46168 100644 --- a/source/blender/blenkernel/intern/smoke.c +++ b/source/blender/blenkernel/intern/smoke.c @@ -1567,6 +1567,7 @@ static void sample_derivedmesh( static void emit_from_derivedmesh(Object *flow_ob, SmokeDomainSettings *sds, SmokeFlowSettings *sfs, EmissionMap *em, float dt) { + clock_t start = clock(); if (!sfs->dm) return; { DerivedMesh *dm; @@ -1704,6 +1705,10 @@ static void emit_from_derivedmesh(Object *flow_ob, SmokeDomainSettings *sds, Smo if (vert_vel) MEM_freeN(vert_vel); } + clock_t end = clock(); + float seconds = (float)(end - start) / CLOCKS_PER_SEC; + printf("TIME FOR RECONSTRUCTING SDF: %f \n", seconds); + int kkk = 9; } /********************************************************** |