[Bf-blender-cvs] [80a84f7c11d] functions: remove some timers

Jacques Lucke noreply at git.blender.org
Sun Jun 30 16:00:48 CEST 2019


Commit: 80a84f7c11df60a87ca4996f0607f70e224ac490
Author: Jacques Lucke
Date:   Sun Jun 30 11:00:48 2019 +0200
Branches: functions
https://developer.blender.org/rB80a84f7c11df60a87ca4996f0607f70e224ac490

remove some timers

===================================================================

M	source/blender/simulations/bparticles/c_wrapper.cpp
M	source/blender/simulations/bparticles/simulate.cpp

===================================================================

diff --git a/source/blender/simulations/bparticles/c_wrapper.cpp b/source/blender/simulations/bparticles/c_wrapper.cpp
index 3ee19466cf8..5d36fd24cf0 100644
--- a/source/blender/simulations/bparticles/c_wrapper.cpp
+++ b/source/blender/simulations/bparticles/c_wrapper.cpp
@@ -97,8 +97,6 @@ class EulerIntegrator : public Integrator {
 
   BLI_NOINLINE void compute_combined_force(ParticlesBlock &block, ArrayRef<float3> r_force)
   {
-    SCOPED_TIMER_STATS(__func__);
-
     r_force.fill({0, 0, 0});
 
     for (Force *force : m_forces) {
@@ -112,8 +110,6 @@ class EulerIntegrator : public Integrator {
                                     ArrayRef<float3> r_position_offsets,
                                     ArrayRef<float3> r_velocity_offsets)
   {
-    SCOPED_TIMER_STATS(__func__);
-
     uint amount = durations.size();
     for (uint pindex = 0; pindex < amount; pindex++) {
       float mass = 1.0f;
diff --git a/source/blender/simulations/bparticles/simulate.cpp b/source/blender/simulations/bparticles/simulate.cpp
index 4d7c101bfc1..810d1fa270c 100644
--- a/source/blender/simulations/bparticles/simulate.cpp
+++ b/source/blender/simulations/bparticles/simulate.cpp
@@ -342,8 +342,6 @@ BLI_NOINLINE static void add_float3_arrays(ArrayRef<float3> base, ArrayRef<float
 BLI_NOINLINE static void apply_remaining_offsets(ParticleSet particles,
                                                  AttributeArrays attribute_offsets)
 {
-  SCOPED_TIMER_STATS(__func__);
-
   for (uint attribute_index : attribute_offsets.info().float3_attributes()) {
     StringRef name = attribute_offsets.info().name_of(attribute_index);



More information about the Bf-blender-cvs mailing list