OpenEXR: a file's channels may take what the machine's RAM allows, not a fixed 8 GiB (#3749)

This commit is contained in:
vangel76 committed 2026-11-15 21:49:18 +01:00
1 parent 932e029592
commit 11604b3379
6 files changed
+155 -9

No files matched your search

@@ -122,6 +122,11 @@ impl Session {
let layers: std::sync::Arc<dyn effectcraft_render::memory::MemoryHolder> = self.layer_cache.clone();
accountant.register(&layers);
accountant.set_budget(b.bytes);
// (what one file's decoded planes may take follows it once the RAM is read, at least the
// fixed limit; until then the host's reader asks when a request is over that, #3749)
if b.installed.is_some() {
effectcraft_render::memory::set_decode_limit(Some(b.bytes));
}
// The process's measured memory as well (#3301: memory nobody accounts for, such as GPU
// staging, effect buffers and the allocator's fragmentation): over the purge limit the
// caches give way by what it is over, over the hard limit also the frames a playing