Blender Git Loki

Git Commits -> Revision 979aa4e

Revision 979aa4e by Janne Karhu (master)
March 9, 2010, 03:01 (GMT)
Point cache optimization: only cache particles that are alive.

This reduces point cache sizes dramatically especially if particle
life time is small compared to total simulation length. For example
with the settings: particle amount = 10000, start = 1, end = 200,
life = 10, cache step = 1, the unoptimized blend file size (compressed)
was a little over 22 Mb and with this optimization the file is a little
under 2 Mb (again compressed). In addition to saving memory/disk space
this also probably speeds up reading from cache, since there's less
data to read.

As an additional fix the memory cache size (displayed in cache panel)
is now calculated correctly.

Commit Details:

Full Hash: 979aa4e9904017144b049f90ff14a6cc928b437d
SVN Revision: 27347
Parent Commit: 417c328
Lines Changed: +138, -101

3 Modified Paths:

/source/blender/blenkernel/BKE_pointcache.h (+5, -5) (Diff)
/source/blender/blenkernel/intern/particle.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+130, -93) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021