From 0499dbc5c16fe6b276da81d65cade4f5da92a308 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 6 May 2021 11:22:54 +1000 Subject: 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 ` was added to support this. --- release/scripts/startup/bl_operators/screen_play_rendered_anim.py | 1 + 1 file changed, 1 insertion(+) (limited to 'release/scripts') diff --git a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py index 0946e89a647..6d60c58cc3a 100644 --- a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py +++ b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py @@ -130,6 +130,7 @@ class PlayRenderedAnim(Operator): "-s", str(frame_start), "-e", str(frame_end), "-j", str(scene.frame_step), + "-c", str(prefs.system.memory_cache_limit), file, ] cmd.extend(opts) -- cgit v1.2.3