When investigating the multi_window memory leak issue in iced project(iced-rs/iced#3233), I see softbuffer(0.4.8) also has the same leak pattern, that is closing window doesn't release some memory resource. But unlike wgpu, it seems easy to fix in softbuffer. I just added
impl Drop for SendCALayer {
fn drop(&mut self) {
unsafe {
self.0.removeFromSuperlayer();
}
}
}
in the cg.rs and then the leak issue solved.
But when I see that in 0.5.0 dev cycle, you are switching to IOSurface for more efficiency, I have concern that it may have similar issue.
When investigating the
multi_windowmemory leak issue in iced project(iced-rs/iced#3233), I see softbuffer(0.4.8) also has the same leak pattern, that is closing window doesn't release some memory resource. But unlike wgpu, it seems easy to fix in softbuffer. I just addedin the cg.rs and then the leak issue solved.
But when I see that in 0.5.0 dev cycle, you are switching to IOSurface for more efficiency, I have concern that it may have similar issue.