diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-05-22 13:00:23 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-05-22 13:00:23 +0300 |
commit | 7f714fdbb2643ce9886d27a4493e9c7c5235c30e (patch) | |
tree | 6e8e5856fac01930b74eb9a70818f8a3c3207a3d /source/blender | |
parent | 9fc5a0c95eb9f68cb63fbdc8cf6451c152dcb820 (diff) |
Depsgraph: Enable copy on write by default
As was decided at today's dev kickoff, we're now moving to having
Copy-on-Write enabled by default, as 2.8 is barely functional with
it off.
To run Blender *without* COW (e.g. for testing), use:
--disable-copy-on-write
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph.h | 2 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h index 0a0e7ee638b..589df5df878 100644 --- a/source/blender/depsgraph/DEG_depsgraph.h +++ b/source/blender/depsgraph/DEG_depsgraph.h @@ -92,7 +92,7 @@ extern "C" { #endif bool DEG_depsgraph_use_copy_on_write(void); -void DEG_depsgraph_enable_copy_on_write(void); +void DEG_depsgraph_disable_copy_on_write(void); /* ************************************************ */ /* Depsgraph API */ diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc index 4307ac94390..32cbee7597c 100644 --- a/source/blender/depsgraph/intern/depsgraph.cc +++ b/source/blender/depsgraph/intern/depsgraph.cc @@ -70,16 +70,16 @@ extern "C" { #include "intern/depsgraph_intern.h" #include "util/deg_util_foreach.h" -static bool use_copy_on_write = false; +static bool use_copy_on_write = true; bool DEG_depsgraph_use_copy_on_write(void) { return use_copy_on_write; } -void DEG_depsgraph_enable_copy_on_write(void) +void DEG_depsgraph_disable_copy_on_write(void) { - use_copy_on_write = true; + use_copy_on_write = false; } namespace DEG { |