Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-18 15:35:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-18 15:35:34 +0300
commit3e8abc0535aaeb736310a1b7a5447df1721ff349 (patch)
treede35daa1ec122c33b2e6803cb7cb61bb20406882 /source/creator
parent46f0b97d208c21d3ce192b71b65e1fa0776f7825 (diff)
Depsgraph: Make Copy-on-Write a command line option
Before it was a compile time option which was not very easy to use or test. Now the project is getting more mature, so very soon we will be able to call for a public tests of limited features. The copy-on-write (which includes animation, modifiers) is enabled using --enable-copy-on-write command line argument.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator_args.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index 24e81f7ea58..0a73426e12b 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -87,6 +87,8 @@
# include "CCL_api.h"
#endif
+#include "DEG_depsgraph.h"
+
#include "creator_intern.h" /* own include */
@@ -583,6 +585,7 @@ static int arg_handle_print_help(int UNUSED(argc), const char **UNUSED(argv), vo
printf("\n");
printf("Experimental Features:\n");
+ BLI_argsPrintArgDoc(ba, "--enable-copy-on-write");
/* Other options _must_ be last (anything not handled will show here) */
printf("\n");
@@ -1174,6 +1177,16 @@ static int arg_handle_threads_set(int argc, const char **argv, void *UNUSED(data
}
}
+static const char arg_handle_use_copy_on_write_doc[] =
+"\n\tUse new dependency graph"
+;
+static int arg_handle_use_copy_on_write(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data))
+{
+ printf("Using copy on write. This is highly EXPERIMENTAL!\n");
+ DEG_depsgraph_enable_copy_on_write();
+ return 0;
+}
+
static const char arg_handle_verbosity_set_doc[] =
"<verbose>\n"
"\tSet logging verbosity level."
@@ -1818,6 +1831,8 @@ void main_args_setup(bContext *C, bArgs *ba, SYS_SystemHandle *syshandle)
BLI_argsAdd(ba, 1, NULL, "--debug-gpu-shaders",
CB_EX(arg_handle_debug_mode_generic_set, gpumem), (void *)G_DEBUG_GPU_SHADERS);
+ BLI_argsAdd(ba, 1, NULL, "--enable-copy-on-write", CB(arg_handle_use_copy_on_write), NULL);
+
BLI_argsAdd(ba, 1, NULL, "--verbose", CB(arg_handle_verbosity_set), NULL);
BLI_argsAdd(ba, 1, NULL, "--factory-startup", CB(arg_handle_factory_startup_set), NULL);