mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Every flight is now a row in the layer's icon set. Its motion segment follows the same regime `_deadReckon` picks (interpolate between fixes, warm up backward from the oldest, coast forward from the newest), and one shared `_motionRegime` makes that choice for both. The shader moves every untracked contact between polls, so the 12 Hz fleet tick no longer touches each billboard. It now only re-plans expired rows, floors grounded contacts, advances focus while needed, and runs the 3D model regime. Grounded contacts the floor lifts are pinned to a hold at the floored position. Their nose glides on the GPU. Contacts within 50 km re-floor every tick, and farther ones take turns about once a second. Low contacts are judged for the horizon at no lower than 12 m above the ellipsoid, as before. Below hover speed a contact's nose holds. A row whose fleet model is drawn keeps its focus updated, because the model reads it. Untracking re-plans and re-floors the icon from the tracked course. On the same views with about 6,700 OpenSky flights, frame gaps at p95 drop from 28-40 ms to 17 ms, and the fleet tick from 16-37 ms to about 2 ms at most.
49 lines
2.3 KiB
JavaScript
49 lines
2.3 KiB
JavaScript
import { defaultSurface } from './surfaceServices.js';
|
|
import { createApplicationFlights } from '../app/layers/flights.js';
|
|
|
|
import { createFlightSource } from '../sources/live/standalone.js';
|
|
import * as militaryRegistry from './militaryRegistry.js';
|
|
|
|
const flightsLayer = createApplicationFlights({
|
|
surface: defaultSurface,
|
|
source: createFlightSource(),
|
|
militaryRegistry,
|
|
});
|
|
export { TRACKED_MODEL_MAX_PX } from '../layers/flights/policy.js';
|
|
export const _floorGroundedDisplayPositionForTest =
|
|
flightsLayer.testing._floorGroundedDisplayPositionForTest;
|
|
export const _clearDisplayFloorStateForTest =
|
|
flightsLayer.testing._clearDisplayFloorStateForTest;
|
|
export const _setTrackedFlightRefreshStateForTest =
|
|
flightsLayer.testing._setTrackedFlightRefreshStateForTest;
|
|
export const _setFlightTrackingRefreshOutcomeForTest =
|
|
flightsLayer.testing._setFlightTrackingRefreshOutcomeForTest;
|
|
export const _addFlightTrackingCandidateForTest =
|
|
flightsLayer.testing._addFlightTrackingCandidateForTest;
|
|
export const _militaryLayerSuppressesForTest =
|
|
flightsLayer.testing._militaryLayerSuppressesForTest;
|
|
export const _armFlightTrackingRestoreForTest =
|
|
flightsLayer.testing._armFlightTrackingRestoreForTest;
|
|
export const _pendingFlightTrackingRestoreForTest =
|
|
flightsLayer.testing._pendingFlightTrackingRestoreForTest;
|
|
export const _applyPendingFlightTrackingRestoreForTest =
|
|
flightsLayer.testing._applyPendingFlightTrackingRestoreForTest;
|
|
export const _setCockpitDetectionSubjectForTest =
|
|
flightsLayer.testing._setCockpitDetectionSubjectForTest;
|
|
export const _trackedModelRegimeActiveForTest =
|
|
flightsLayer.testing._trackedModelRegimeActiveForTest;
|
|
export const _updateTrackedModelForTest =
|
|
flightsLayer.testing._updateTrackedModelForTest;
|
|
export const _trackedBillboardColorForTest =
|
|
flightsLayer.testing._trackedBillboardColorForTest;
|
|
export const _driveFleetModelHandoffForTest =
|
|
flightsLayer.testing._driveFleetModelHandoffForTest;
|
|
export const _ensureFleetModelForTest =
|
|
flightsLayer.testing._ensureFleetModelForTest;
|
|
export const _iconForTest = flightsLayer.testing._iconForTest;
|
|
export const _setIconForTest = flightsLayer.testing._setIconForTest;
|
|
export const _floorGroundedIconsForTest =
|
|
flightsLayer.testing._floorGroundedIconsForTest;
|
|
export const mapAnalystRecord = flightsLayer.mapAnalystRecord;
|
|
export default flightsLayer;
|