diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-08-30 18:20:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-08-31 21:04:14 +0300 |
commit | b9998541e193b1f30728fc034c7a10daae183a08 (patch) | |
tree | bf2ed1b6f32006f93d2f36e946da404eff21704c /source/blender/render/intern/render_types.h | |
parent | e665f0f497f6ea6a4cff36e977bbac29dd762c00 (diff) |
Fix part of T100626: Cycles not using tiles for baking
Leading to excessive memory usage compared to Blender 2.93. There's still
some avoidable memory usage remaining, due to the full float buffer in the
new image editor drawing and not loading the cached EXR from disk in tiles.
Main difficulty was handling multi-image baking and disk caches, which is
solved by associating a unique layer name with each image so it can be
matched when reading back the image from the disk.
Also some minor header changes to be able to use RE_MAXNAME in RE_bake.h.
Diffstat (limited to 'source/blender/render/intern/render_types.h')
-rw-r--r-- | source/blender/render/intern/render_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/render/intern/render_types.h b/source/blender/render/intern/render_types.h index d1ffa1ba705..29bac6e2766 100644 --- a/source/blender/render/intern/render_types.h +++ b/source/blender/render/intern/render_types.h @@ -17,6 +17,7 @@ #include "RE_pipeline.h" +struct Depsgraph; struct GSet; struct Main; struct Object; @@ -87,7 +88,7 @@ struct Render { /* NOTE: This is a minimal dependency graph and evaluated scene which is enough to access view * layer visibility and use for postprocessing (compositor and sequencer). */ - Depsgraph *pipeline_depsgraph; + struct Depsgraph *pipeline_depsgraph; Scene *pipeline_scene_eval; /* callbacks */ |