Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/tables.cpp
| Show All 36 Lines | |||||
| } | } | ||||
| void LookupTables::device_update(Device *, DeviceScene *dscene, Scene *scene) | void LookupTables::device_update(Device *, DeviceScene *dscene, Scene *scene) | ||||
| { | { | ||||
| if (!need_update) | if (!need_update) | ||||
| return; | return; | ||||
| scoped_callback_timer timer([scene](double time) { | scoped_callback_timer timer([scene](double time) { | ||||
| if (scene->update_stats) { | if (scene->get_update_stats()) { | ||||
| scene->update_stats->tables.times.add_entry({"device_update", time}); | scene->get_update_stats()->tables.times.add_entry({"device_update", time}); | ||||
| } | } | ||||
| }); | }); | ||||
| VLOG(1) << "Total " << lookup_tables.size() << " lookup tables."; | VLOG(1) << "Total " << lookup_tables.size() << " lookup tables."; | ||||
| if (lookup_tables.size() > 0) | if (lookup_tables.size() > 0) | ||||
| dscene->lookup_table.copy_to_device(); | dscene->lookup_table.copy_to_device(); | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||