skgrush / CavernSeer

An iPadOS and iOS application for scanning 3D spaces
MIT License
32 stars 9 forks source link

Cleanup arview in background #14

Closed skgrush closed 3 years ago

skgrush commented 3 years ago

ScannerModel and related references try to minimize strong references, and cleans up the ARView when the scanner tab is not in view.

ARViewScannerContainer (the ARView container) implements dismantle logic which calls ScannerModel#onViewDisappear() to clean up.

Oddly, while this does significantly improve memory usage, it still seems to retain quite a bit of seemingly-unneeded memory when the ARView is unloaded.

skgrush commented 3 years ago

This partly addresses #5 but not entirely, we've still got some latent memory hanging around.