Blender Git Commit Log

Git Commits -> Revision 91e0a16

Revision 91e0a16 by Sergey Sharybin (master)
September 12, 2016, 07:39 (GMT)
Cycles: Use XDG's .cache folder for cached kernels

Basically just moves cached kernels from ~/.config/blender/BLENDER_VERSION to
~/.cache/cycles/kernels. This has following benefits:

- Follows XDG specification more closely,
not as if it's totally crucial or measurable by users, but still nice.

- Prevents unexpected sizes of config folder, makes disk space used in more
predictable for users way.

- Allows to share kernels across multiple Blender versions,
which makes it easier debugging at the times close to release.

- "Copy Previous Settings" operator will no longer be copying possibly
gigabytes of cached kernels, which used to lead to really nast disk usage
and annoying delays of copying settings.

- In the future we can have some smart logic to clear old unused cached
kernels.

Currently only done for Linux and OSX. Windows still follows old "cache"
folder logic, but it's not really important for now because we don't
support kernel compilation on this platform yet.

Reviewers: dingto, juicyfruit, brecht

Reviewed By: brecht

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

Commit Details:

Full Hash: 91e0a16f2f7592b93bd41319e4099f6cfa183a05
Parent Commit: 49df5d0
Lines Changed: +45, -7

4 Modified Paths:

/intern/cycles/device/device_cuda.cpp (+1, -1) (Diff)
/intern/cycles/device/device_opencl.cpp (+6, -6) (Diff)
/intern/cycles/util/util_path.cpp (+37, -0) (Diff)
/intern/cycles/util/util_path.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021