NASA-AMMOS / 3DTilesRendererJS

Renderer for 3D Tiles in Javascript using three.js
https://nasa-ammos.github.io/3DTilesRendererJS/example/bundle/mars.html
Apache License 2.0
1.57k stars 280 forks source link

LRUCache: don't mark unused items #590

Closed Nmzik closed 3 months ago

Nmzik commented 3 months ago

Don't mark unused items as "used" in LRUCache. Frees space for more tiles.

gkjohnson commented 3 months ago

Thanks for the contribution but unfortunately I don't think we can make this change. The intermediate parent tiles are all loaded so they can be swapped to when the camera moves. If the parent tiles are not loaded (eg unloaded, etc) and the children are being displayed then the parent tile will be loaded again and only tiles up to the loaded parent set will be displayed until parent tiles down to the children are loaded.