Blender Git Loki

Git Commits -> Revision a832bab

Revision a832bab by Sergey Sharybin (cycles-x)
March 19, 2021, 18:12 (GMT)
Cycles: Make buffer parameters more coupled to PathTraceWork

It is annoying to pass scaled parameters to every call. More correct
approach it seems to be to make them more "sticky": they become a
property of path trace work, together with the render buffers.

The idea is to have the following in the long term:
- PathTrace allocates render buffers for every PathTraceWork
- PathTrace updates parameters of every PathTraceWork on resolution
divider change.
- PathTrace re-allocates the buffer when balancing is needed to
accomodate for performance difference of different render devices.

This way PathTraceWork always knows its buffer pointer and effective
parameters and always uses them in all the API calls.

Commit Details:

Full Hash: a832babc2e7e7747b29c4ad1d952806c045c26df
Parent Commit: 60b5410
Lines Changed: +35, -22

7 Modified Paths:

/intern/cycles/integrator/path_trace.cpp (+6, -1) (Diff)
/intern/cycles/integrator/path_trace_work.cpp (+6, -0) (Diff)
/intern/cycles/integrator/path_trace_work.h (+13, -3) (Diff)
/intern/cycles/integrator/path_trace_work_cpu.cpp (+6, -8) (Diff)
/intern/cycles/integrator/path_trace_work_cpu.h (+1, -3) (Diff)
/intern/cycles/integrator/path_trace_work_gpu.cpp (+2, -4) (Diff)
/intern/cycles/integrator/path_trace_work_gpu.h (+1, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021