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:
authorCampbell Barton <ideasman42@gmail.com>2021-05-06 04:22:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-05-06 04:31:44 +0300
commit0499dbc5c16fe6b276da81d65cade4f5da92a308 (patch)
treecdf3bb60c190a2bc223cabcf90fe189da8f31424 /source/creator
parent2d3379e2431658aa3130d0699cafd302121164ed (diff)
PlayAnim: support limiting the cache by memory instead of frames
Partial fix for T81751 which exposes multiple playback performance issues. Previously the cache was limited to 30 frames, without a way to increase the cache for smooth playback with files that are slow to load. Now the animation plays back smoothly once loaded into cache. The cache limit from the system preference is used when the player is launched from Blender. A new player argument `-c <cache_limit>` was added to support this.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator_args.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index d7f649b657d..9c7b7dc3f34 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -1189,7 +1189,10 @@ static const char arg_handle_playback_mode_doc[] =
"\t-s <frame>\n"
"\t\tPlay from <frame>.\n"
"\t-e <frame>\n"
- "\t\tPlay until <frame>.";
+ "\t\tPlay until <frame>.\n"
+ "\t-c <cache_memory>\n"
+ "\t\tAmount of memory in megabytes to allow for caching images during playback.\n"
+ "\t\tZero disables (clamping to a fixed number of frames instead).";
static int arg_handle_playback_mode(int argc, const char **argv, void *UNUSED(data))
{
/* not if -b was given first */