Station dots stand until the model is ready; the model is released when undrawn

The station's, the tracked and the docked dots are handed to the model only
once the renderer reports it ready, so the station no longer goes dark while
the file loads, or for good when it fails to. Turning the layer off releases
the model's draw set at once, and a minute out of range or hidden releases
it too, giving its GPU memory back; the next approach asks for it again.
This commit is contained in:
Denis Groshev committed 2026-11-17 16:25:04 +01:00
1 parent 1e2332eeb6
commit be326fdcf4
3 files changed
+135 -12

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ export function createLifecycle({
parts.rendering._setPointsShown(false);
parts.rendering._setOrbitPathsShown(false);
for (const model of parts.stationModels ?? [])
model._updateStationModel(); // off: hides the model
model._updateStationModel(); // off: releases the model
parts.tracking._clearTracking();
parts.stationPanel?._syncStationPanel(); // off: takes the panel down
parts.labels._syncIssOverlay();