mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-20 00:55:43 +00:00
#3334: the matte cache's memory candidates after the merge (Candidate::new)
This commit is contained in:
1 parent
ac208c0d1b
commit
dab57e6982
1 file changed
+1
-5
@@ -134,11 +134,7 @@ impl MemoryHolder for Holder {
|
||||
let c = lock();
|
||||
let e = c.entries.get(oldest(&c)?)?;
|
||||
// (a plane of channels that are gone is worth nothing)
|
||||
Some(if e.gone() {
|
||||
Candidate { used: 0, bytes: e.plane.bytes(), cost_us: 0 }
|
||||
} else {
|
||||
Candidate { used: e.used, bytes: e.plane.bytes(), cost_us: e.cost_us }
|
||||
})
|
||||
Some(if e.gone() { Candidate::new(0, e.plane.bytes(), 0) } else { Candidate::new(e.used, e.plane.bytes(), e.cost_us) })
|
||||
}
|
||||
fn drop_oldest(&self) -> usize {
|
||||
let mut c = lock();
|
||||
|
||||
Reference in new issue
Block a user