Blender Git Commit Log

Git Commits -> Revision caca35d

Revision caca35d by Sergey Sharybin (cycles-x)
April 7, 2021, 12:16 (GMT)
Cycles: Pass callback by const reference

The only benefit which I am aware of of passing callback by value is
when it needs to be moved for a permanent storage somewhere else.

Here passing it by value was creating temporary copies for every
invocation.

Commit Details:

Full Hash: caca35dd80c936a2cd1713592cd454d9cbc7e571
Parent Commit: dbe187e
Lines Changed: +2, -2

2 Modified Paths:

/intern/cycles/device/device.h (+1, -1) (Diff)
/intern/cycles/device/multi/device.cpp (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021