mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-28 09:09:39 +01:00
* CLI: a headless session's footage frames keep at most 1 GB (#4157) Since #3301 the footage frames may fill the caches' whole common budget, and since #3941 the CLI's budget is that of the installed RAM. A one-pass render reads each frame about once, so it kept gigabytes of frames it never read again and was killed under a cgroup memory limit. Session::footage_cap caps the footage frames (and decoded planes) below the common budget; apply_cache_budgets honours it, so a new memory reading or a settings change keeps it. headless_session() sets it to HEADLESS_MEDIA_CACHE (1 GB, the footage cache's default in 0.24). The desktop app keeps the whole budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(host): a headless session's footage cap is exactly HEADLESS_MEDIA_CACHE (#4157) Assert the cap itself (or the budget, if smaller) rather than only that it is below the budget, which a wrong cap above 1 GB would also pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>