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:
authorAaron Carlisle <carlisle.b3d@gmail.com>2020-04-15 20:54:08 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2020-04-15 20:54:08 +0300
commite9a3a1afd13b4713be83fa55f7fd9366823be9b0 (patch)
tree9f5d7441c4d27bf74726147dd1d347c2588d7374 /source/blender/blenkernel/intern/fluid.c
parentf49ffd7f1c75c86108dee3712412449f4e97994d (diff)
Mantaflow: Change Defaults to Improve Instantaneous Playback
- Change the default cache method to replay - Change the default resolution to 32 (The same as old smoke) which have a speedup of about 4x (~4 FPS vs. ~16 FPS on initial playback) Peformance was tested with 3700x and RTX 2070 Differential Revision: https://developer.blender.org/D6853 Fixes T73799
Diffstat (limited to 'source/blender/blenkernel/intern/fluid.c')
-rw-r--r--source/blender/blenkernel/intern/fluid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c
index 8076cc0967b..8697cd03827 100644
--- a/source/blender/blenkernel/intern/fluid.c
+++ b/source/blender/blenkernel/intern/fluid.c
@@ -4761,7 +4761,7 @@ void BKE_fluid_modifier_create_type_data(struct FluidModifierData *mmd)
mmd->domain->adapt_threshold = 0.02f;
/* fluid domain options */
- mmd->domain->maxres = 64;
+ mmd->domain->maxres = 32;
mmd->domain->solver_res = 3;
mmd->domain->border_collisions = 0; // open domain
mmd->domain->flags = FLUID_DOMAIN_USE_DISSOLVE_LOG | FLUID_DOMAIN_USE_ADAPTIVE_TIME;
@@ -4863,7 +4863,7 @@ void BKE_fluid_modifier_create_type_data(struct FluidModifierData *mmd)
mmd->domain->cache_frame_pause_particles = 0;
mmd->domain->cache_frame_pause_guide = 0;
mmd->domain->cache_flag = 0;
- mmd->domain->cache_type = FLUID_DOMAIN_CACHE_MODULAR;
+ mmd->domain->cache_type = FLUID_DOMAIN_CACHE_REPLAY;
mmd->domain->cache_mesh_format = FLUID_DOMAIN_FILE_BIN_OBJECT;
#ifdef WITH_OPENVDB
mmd->domain->cache_data_format = FLUID_DOMAIN_FILE_OPENVDB;