mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-20 00:55:43 +00:00
OpenEXR: a file's channels may take what the machine's RAM allows, not a fixed 8 GiB (#3749)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user