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:
Diffstat (limited to 'intern/cycles/render/particles.cpp')
-rw-r--r--intern/cycles/render/particles.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/cycles/render/particles.cpp b/intern/cycles/render/particles.cpp
index 494f5929df2..faad731d413 100644
--- a/intern/cycles/render/particles.cpp
+++ b/intern/cycles/render/particles.cpp
@@ -17,6 +17,7 @@
#include "render/particles.h"
#include "device/device.h"
#include "render/scene.h"
+#include "render/stats.h"
#include "util/util_foreach.h"
#include "util/util_hash.h"
@@ -111,6 +112,12 @@ void ParticleSystemManager::device_update(Device *device,
if (!need_update)
return;
+ scoped_callback_timer timer([scene](double time) {
+ if (scene->update_stats) {
+ scene->update_stats->particles.times.add_entry({"device_update", time});
+ }
+ });
+
VLOG(1) << "Total " << scene->particle_systems.size() << " particle systems.";
device_free(device, dscene);