Draw the traffic dots through the draw port and read the road surface through renderer ports

The traffic layer's vehicle dots are now a points set on the draw port,
moved, added to and taken from in place each frame, instead of a Cesium
point collection. Road surface heights and readiness read the query,
camera, frame and globe ports and the heights service instead of the
scene; the surface identity and "any tileset drawn" checks, which the
contract cannot answer, move to rendering.js with the heat lines.

animation.js, style.js and surface.js leave the Cesium allow-list.

The Cesium draw port compares a moved point's look without allocating:
colours by index, and a frozen colour or curve of plain data by identity,
so a thousand dots moved every frame cost about what direct writes did.
The traffic QA scripts read the dots' draw items.
This commit is contained in:
Sameh Khamis committed 2026-11-07 23:16:11 -08:00
1 parent d9db5199ed
commit bbd6049e21
24 files changed
+872 -467

No files matched your search

+8 -12
View File
@@ -7,6 +7,7 @@ import { createRetention } from './retention.js';
import { createControls } from './controls.js';
import { createState } from './state.js';
import { bindRenderer } from '../../render/rendererOf.js';
import { surfaceViewer } from '../../testSupport/fakeSceneSurface.mjs';
const bounds = { west: 0, east: 0.01, south: 0, north: 0.01 };
const flush = async () => { for (let i = 0; i < 30; i++) await Promise.resolve(); };
@@ -212,20 +213,15 @@ function flowFixture(source) {
_enabled: true,
_roadMode: 'osm',
_parseRoads: (data) => data.roads,
_viewer: {
get canvas() {
return this.scene?.canvas;
},
scene: {
globe: {
show: true,
getHeight: () => {
calls.samples++;
return 100;
},
_viewer: surfaceViewer({
globe: {
show: true,
getHeight: () => {
calls.samples++;
return 100;
},
},
},
}),
});
const parts = {
viewport: {