Blender Git Loki

Git Commits -> Revision d9773ed

Revision d9773ed by Brecht Van Lommel (master)
May 15, 2020, 18:25 (GMT)
Cycles: code refactor to bake using regular render session and tiles

There should be no user visible change from this, except that tile size
now affects performance. The goal here is to simplify bake denoising in
D3099, letting it reuse more denoising tiles and pass code.

A lot of code is now shared with regular rendering, with the two main
differences being that we read some render result passes from the bake API
when starting to render a tile, and call the bake kernel instead of the
path trace kernel.

With this kind of design where Cycles asks for tiles from the bake API,
it should eventually be easier to reduce memory usage, show tiles as
they are baked, or bake multiple passes at once, though there's still
quite some work needed for that.

Reviewers: #cycles

Subscribers: monio, wmatyjewicz, lukasstockner97, michaelknubben

Differential Revision: https://developer.blender.org/D3108

Commit Details:

Full Hash: d9773edaa394f61393f9c8b80275e62f74306097
Parent Commit: 3ff8ca6
Committed By: Lukas Stockner
Lines Changed: +605, -673

31 Modified Paths:

/intern/cycles/blender/addon/engine.py (+2, -2) (Diff)
/intern/cycles/blender/addon/__init__.py (+2, -2) (Diff)
/intern/cycles/blender/blender_python.cpp (+5, -23) (Diff)
/intern/cycles/blender/blender_session.cpp (+60, -108) (Diff)
/intern/cycles/blender/blender_session.h (+7, -6) (Diff)
/intern/cycles/blender/blender_sync.cpp (+3, -0) (Diff)
/intern/cycles/device/cuda/device_cuda.h (+1, -1) (Diff)
/intern/cycles/device/cuda/device_cuda_impl.cpp (+28, -24) (Diff)
/intern/cycles/device/device_cpu.cpp (+21, -7) (Diff)
/intern/cycles/device/opencl/device_opencl.h (+1, -0) (Diff)
/intern/cycles/device/opencl/device_opencl_impl.cpp (+49, -4) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu.h (+3, -0) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_impl.h (+13, -6) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel.cu (+7, -4) (Diff)
/intern/cycles/kernel/kernel_bake.h (+73, -79) (Diff)
/intern/cycles/kernel/kernel_types.h (+17, -0) (Diff)
/intern/cycles/render/bake.cpp (+82, -223) (Diff)
/intern/cycles/render/bake.h (+4, -48) (Diff)
/intern/cycles/render/buffers.cpp (+34, -0) (Diff)
/intern/cycles/render/buffers.h (+2, -1) (Diff)
/intern/cycles/render/film.cpp (+15, -2) (Diff)
/intern/cycles/render/session.cpp (+26, -6) (Diff)
/intern/cycles/render/session.h (+1, -0) (Diff)
/source/blender/editors/object/object_bake_api.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_render.c (+6, -90) (Diff)
/source/blender/render/extern/include/RE_bake.h (+1, -1) (Diff)
/source/blender/render/extern/include/RE_engine.h (+9, -5) (Diff)
/source/blender/render/intern/include/render_result.h (+6, -5) (Diff)
/source/blender/render/intern/source/external_engine.c (+118, -11) (Diff)
/source/blender/render/intern/source/pipeline.c (+1, -1) (Diff)
/source/blender/render/intern/source/render_result.c (+6, -12) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021