Blender Git Loki

Git Commits -> Revision 8fb0b9a

Revision 8fb0b9a by Sergey Sharybin (master)
March 18, 2019, 16:11 (GMT)
Subdiv: Enable topology cache in edit mode

The general idea of this change is to have a runtime data pointer
in the ModifierData, so it can be preserved through copy-on-write
updates by the dependency graph.

This is where subdivision surface modifier can store its topology
cache, so it is not getting trashed on every copy-on-write which
is happening when moving a vertex.

Similar mechanism should be used by multiresolution, dynamic paint
and some other modifiers which cache evaluated data.

This fixes T61746.

Thing to keep in mind, that there are more reports about slow
subdivision surface in the tracker, but that boils down to the
fact that those have a lot of extraordinary vertices, and hence
a lot slower to evaluated topology.
Other thing is, this speeds up oeprations which doesn't change
topology (i.e. moving vertices).

Reviewers: brecht

Reviewed By: brecht

Maniphest Tasks: T61746

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

Commit Details:

Full Hash: 8fb0b9aebbd409216dec77c4b1bf2a2fbba80698
Parent Commit: 91ffd39
Lines Changed: +296, -68

60 Modified Paths:

/source/blender/blenkernel/BKE_modifier.h (+14, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -1) (Diff)
/source/blender/depsgraph/intern/depsgraph_type.h (+6, -0) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc (+182, -57) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+1, -3) (Diff)
/source/blender/modifiers/intern/MOD_armature.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_array.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_bevel.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_boolean.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_build.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_cast.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_cloth.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_collision.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_correctivesmooth.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_curve.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_datatransfer.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_decimate.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_displace.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_dynamicpaint.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_edgesplit.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_explode.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_fluidsim.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_hook.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_laplaciandeform.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_laplaciansmooth.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_lattice.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_mask.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_meshcache.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_meshdeform.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_meshsequencecache.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_mirror.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_multires.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_none.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_normal_edit.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_ocean.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_particleinstance.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_particlesystem.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_remesh.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_screw.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_shapekey.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_shrinkwrap.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_simpledeform.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_skin.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_smoke.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_smooth.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_softbody.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_solidify.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_subsurf.c (+38, -7) (Diff)
/source/blender/modifiers/intern/MOD_surface.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_surfacedeform.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_triangulate.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_uvproject.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_uvwarp.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_warp.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_wave.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_weighted_normal.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_weightvgedit.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_weightvgmix.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_weightvgproximity.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_wireframe.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021