Blender Git Commit Log

Git Commits -> Revision ad0d00e

January 20, 2017, 10:24 (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: ad0d00e551d103fc9910f328dadc87f3fd505b58
Parent Commit: c9adc55
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