[Bf-blender-cvs] [0fddff027ed] master: Cleanup: Unused but set variable in Cycles Metal profiler
Sergey Sharybin
noreply at git.blender.org
Thu Jun 9 10:20:30 CEST 2022
Commit: 0fddff027ed025c27c818ff68315b8285e5c1a69
Author: Sergey Sharybin
Date: Thu Jun 9 10:20:04 2022 +0200
Branches: master
https://developer.blender.org/rB0fddff027ed025c27c818ff68315b8285e5c1a69
Cleanup: Unused but set variable in Cycles Metal profiler
===================================================================
M intern/cycles/device/metal/queue.mm
===================================================================
diff --git a/intern/cycles/device/metal/queue.mm b/intern/cycles/device/metal/queue.mm
index 8b2d5d81859..9d8625e1455 100644
--- a/intern/cycles/device/metal/queue.mm
+++ b/intern/cycles/device/metal/queue.mm
@@ -121,11 +121,9 @@ MetalDeviceQueue::~MetalDeviceQueue()
double total_time = 0.0;
/* Show per-kernel timings, if gathered (see CYCLES_METAL_PROFILING). */
- int64_t total_work_size = 0;
int64_t num_dispatches = 0;
for (auto &stat : timing_stats) {
total_time += stat.total_time;
- total_work_size += stat.total_work_size;
num_dispatches += stat.num_dispatches;
}
More information about the Bf-blender-cvs
mailing list