Blender Git Loki

Git Commits -> Revision b852db5

Revision b852db5 by Bastien Montagne (master)
March 17, 2020, 14:02 (GMT)
Add experimental global undo speedup.

The feature is hidden behind an experimental option, you'll have to
enable it in the preferences to try it.

This feature is not yet considered fully stable, crashes may happen, as
well as .blend file corruptions (very unlikely, but still possible).

In a nutshell, the ideas behind this code are to:
* Detect unchanged IDs across an undo step.
* Reuse as much as possible existing IDs memory, even when its content
did change.
* Re-use existing depsgraphs instead of building new ones from scratch.
* Store accumulated recalc flags, to avoid needless re-compute of things
that did not change, when the ID itself is detected as modified.

See T60695 and D6580 for more technical details.

Commit Details:

Full Hash: b852db57ba24adfcfaa0ada7e9ff513a79a399a2
Parent Commit: 9ce3890
Lines Changed: +534, -69

17 Modified Paths:

/release/scripts/startup/bl_ui/space_userpref.py (+21, -0) (Diff)
/source/blender/blenkernel/BKE_blender_undo.h (+4, -1) (Diff)
/source/blender/blenkernel/BKE_main.h (+5, -0) (Diff)
/source/blender/blenkernel/BKE_undo_system.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/blender_undo.c (+10, -3) (Diff)
/source/blender/blenkernel/intern/blendfile.c (+21, -17) (Diff)
/source/blender/blenloader/BLO_readfile.h (+7, -2) (Diff)
/source/blender/blenloader/BLO_undofile.h (+4, -0) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+9, -3) (Diff)
/source/blender/blenloader/intern/readfile.c (+286, -34) (Diff)
/source/blender/blenloader/intern/readfile.h (+21, -2) (Diff)
/source/blender/blenloader/intern/undofile.c (+7, -2) (Diff)
/source/blender/blenloader/intern/writefile.c (+6, -0) (Diff)
/source/blender/editors/undo/memfile_undo.c (+116, -4) (Diff)
/source/blender/makesdna/DNA_ID.h (+4, -0) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+8, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021