Blender Git Loki

Git Commits -> Revision 90c18b4

April 10, 2015, 18:19 (GMT)
Cycles: Synchronize images after building mesh BVH

This way memory overhead caused by the BVH building is not so visible and peak
memory usage will be reduced.

Implementing this idea is not so straightforward actually, because we need to
synchronize images used for true displacement before meshes. Detecting whether
image is used for true displacement is not so striaghtforward, so for now all
all displacement types will synchronize images used for them.

Such change brings memory usage from 4.1G to 4.0G with the 01_01_01_D scene
from gooseberry. With 01_01_01_G scene it's 7.6G vs. 6.8G (before and after
the patch).

Reviewers: campbellbarton, juicyfruit, brecht

Subscribers: eyecandy

Differential Revision:

Commit Details:

Full Hash: 90c18b422de5169354e7360acb239f939af48ff8
Parent Commit: bf2856c
Lines Changed: +95, -5

5 Modified Paths:

/intern/cycles/render/image.cpp (+27, -0) (Diff)
/intern/cycles/render/image.h (+1, -0) (Diff)
/intern/cycles/render/mesh.cpp (+61, -0) (Diff)
/intern/cycles/render/mesh.h (+1, -0) (Diff)
/intern/cycles/render/scene.cpp (+5, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021