PRo3D icon indicating copy to clipboard operation
PRo3D copied to clipboard

Memory leak and saturated memory usage for high values of frustrum

Open gpaar opened this issue 1 year ago • 1 comments
trafficstars

On larger (e.g. Jezero HiRise data sets), frustrum settings higher than ~30 lead to extensively growing memory usage which seems to saturate at about 33 GBytes. The process stalls and/or crashes at this point. Seemingly, LoDs are not properly handled and a much larger portion is attempted to load than necessary for the given FoV. Still present in 4.21.0-Prerelease3

gpaar avatar Apr 19 '24 10:04 gpaar

related to this one, https://github.com/pro3d-space/PRo3D/issues/485, the current state is. i tweaked the bounding box based lod heuristics to work better with those scenarios but in general, those ortho-style cameras need a different approach altogether. The problem is that, just based on the bounding boxes, all opcs intersecting the view frustum needs to be loaded - and those are maaaany, depending how far away one is looking at. This can't be improved easily. We simply need more information in the lod which is not here yet. The best approach is to use sample rays to guide the lod. This is not that much effor but it needs still-sit-down time.

haraldsteinlechner avatar Jan 09 '25 09:01 haraldsteinlechner