Blender Git Loki

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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021