diff options
Diffstat (limited to 'intern/cycles/render/tables.cpp')
-rw-r--r-- | intern/cycles/render/tables.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/intern/cycles/render/tables.cpp b/intern/cycles/render/tables.cpp index 270e05abe29..b581537c852 100644 --- a/intern/cycles/render/tables.cpp +++ b/intern/cycles/render/tables.cpp @@ -17,8 +17,10 @@ #include "render/tables.h" #include "device/device.h" #include "render/scene.h" +#include "render/stats.h" #include "util/util_logging.h" +#include "util/util_time.h" CCL_NAMESPACE_BEGIN @@ -34,11 +36,17 @@ LookupTables::~LookupTables() assert(lookup_tables.size() == 0); } -void LookupTables::device_update(Device *, DeviceScene *dscene) +void LookupTables::device_update(Device *, DeviceScene *dscene, Scene *scene) { if (!need_update) return; + scoped_callback_timer timer([scene](double time) { + if (scene->update_stats) { + scene->update_stats->tables.times.add_entry({"device_update", time}); + } + }); + VLOG(1) << "Total " << lookup_tables.size() << " lookup tables."; if (lookup_tables.size() > 0) |