diff options
author | Ton Roosendaal <ton@blender.org> | 2004-09-05 17:43:51 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-09-05 17:43:51 +0400 |
commit | bf83f6ddd87a76d30339057118f23c5651f9eff4 (patch) | |
tree | d28c5dbec49a60b2060dda9f17f48d08b404f806 /source/blender/blenkernel/BKE_global.h | |
parent | 61e4707bdb6e9f64db0520c47f398d68e9322937 (diff) |
Second itteration of global undo system. Now based on:
- file-to-memory save
- incremental difference steps (compression)
everthing has been tightly coded to use minimum of memcpy or allocs. In
fact this system works with a single full buffer (=file) in memory, and undosteps as differences from it.
Speed gain is factor 4-8 faster. I've added it in CTRL+ALT+T timer menu for
a test. Please note the gain is especially in the undo-storing, not in
retrieving undo.
Also new: file read option to skip UI read (file menu). This now also is
default for the undo system.
Diffstat (limited to 'source/blender/blenkernel/BKE_global.h')
-rw-r--r-- | source/blender/blenkernel/BKE_global.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h index b9c45834840..205c417d79c 100644 --- a/source/blender/blenkernel/BKE_global.h +++ b/source/blender/blenkernel/BKE_global.h @@ -202,6 +202,8 @@ typedef struct Global { #define G_FILE_LOCK_BIT 7 #define G_FILE_SIGN_BIT 8 #define G_FILE_PUBLISH_BIT 9 +#define G_FILE_NO_UI_BIT 10 + #define G_AUTOPACK (1 << G_AUTOPACK_BIT) #define G_FILE_COMPRESS (1 << G_FILE_COMPRESS_BIT) @@ -213,6 +215,7 @@ typedef struct Global { #define G_FILE_LOCK (1 << G_FILE_LOCK_BIT) #define G_FILE_SIGN (1 << G_FILE_SIGN_BIT) #define G_FILE_PUBLISH (1 << G_FILE_PUBLISH_BIT) +#define G_FILE_NO_UI (1 << G_FILE_NO_UI_BIT) /* G.windowstate */ #define G_WINDOWSTATE_USERDEF 0 |