mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
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:
1 parent
1e2332eeb6
commit
be326fdcf4
3 files changed
+135
-12
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user