mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
The renderer seam: clicks go to the newest tool, recession and display groups through the contract, drawing at parity with Cesium
- Clicks: when two tools want the globe's clicks, the newest takes them and the older is told and turns itself off; a click is decided when it arrives, and ambient selection fires only when no tool holds the pointer. The "map is busy" paths and their strings are removed. - Recession: the limb fade is shared (src/render/recession.js) and reaches icon and model sets through SetSpec.recede; tuning applies on the next frame. - Display panel groups are published through src/ui/displayGroups.js; the Weather group and src/viewWeather.js are removed. - Draw port: a set whose icons only move is moved in place, and models that did not change are not restyled each frame, so moving fleets cost what they did when drawn directly; an untinted, fully opaque model is drawn without a colour. - Conformance: input.lease.lost checks the new lease inside onLost and reports a throwing onLost; draw.sets.recede covers model sets. - QA scripts read the renderer host instead of internals the seam replaced.
This commit is contained in:
1 parent
a0d299523d
commit
0ab31d4fb8
130 files changed
+5438
-1674
No files matched your search
@@ -24,6 +24,7 @@ export const CESIUM_CHECKS = new Set([
|
||||
'camera.trace.commands inside a lookAt frame',
|
||||
'camera.trace.changed fires by each listener’s threshold',
|
||||
'camera.moveEnd',
|
||||
'camera.changed.order',
|
||||
'camera.controls.holds',
|
||||
'camera.controls.settings',
|
||||
'camera.follow',
|
||||
@@ -74,6 +75,9 @@ export const CESIUM_CHECKS = new Set([
|
||||
'draw.lines.segments',
|
||||
'draw.lines.segmentStyles',
|
||||
'draw.sets.blend',
|
||||
'draw.sets.recede',
|
||||
'draw.sets.recede.models',
|
||||
'draw.afterDispose',
|
||||
'draw.ids',
|
||||
'draw.models',
|
||||
'draw.shapes.lit',
|
||||
@@ -123,6 +127,7 @@ export const CESIUM_CHECKS = new Set([
|
||||
'input.clickPick',
|
||||
'input.lease',
|
||||
'input.lease.grab',
|
||||
'input.lease.lost',
|
||||
'input.lease.press',
|
||||
'query.heights',
|
||||
'query.pickBeforeStyles',
|
||||
@@ -134,12 +139,24 @@ export const CESIUM_CHECKS = new Set([
|
||||
'quality',
|
||||
'quality.signals',
|
||||
'quality.signals.gpuTiming',
|
||||
'renderer.afterDestroy',
|
||||
'renderer.afterDestroy.frames',
|
||||
'renderer.listeners',
|
||||
'renderer.listenerRules',
|
||||
'renderer.shape',
|
||||
'renderer.capture',
|
||||
'renderer.readPixels',
|
||||
'renderer.releaseUnused',
|
||||
'renderer.whenSettled',
|
||||
'renderer.resize',
|
||||
'frame.setTargetFps',
|
||||
'globe.setTerrain',
|
||||
'globe.setPhotoreal',
|
||||
'globe.progress',
|
||||
'effects.setStyleParams',
|
||||
'effects.bloom',
|
||||
'effects.sharpen',
|
||||
'quality.probe',
|
||||
]);
|
||||
|
||||
/** A frame fails the check rather than hang it when frames stop. */
|
||||
@@ -183,6 +200,7 @@ export function createCesiumHarness({
|
||||
// own that each frame moves on by 1/60 s: flights then step as the
|
||||
// reference traces do, frame by frame.
|
||||
const clocks = new WeakMap();
|
||||
const containers = new WeakMap();
|
||||
return {
|
||||
name,
|
||||
// A camera controller hears the pointer events sent through `pointer`
|
||||
@@ -220,8 +238,15 @@ export function createCesiumHarness({
|
||||
}
|
||||
};
|
||||
clocks.set(renderer, clock);
|
||||
containers.set(renderer, container);
|
||||
return renderer;
|
||||
},
|
||||
resizeContainer: (r, { width, height }) => {
|
||||
const container = containers.get(r);
|
||||
if (!container) return;
|
||||
container.style.width = `${width}px`;
|
||||
container.style.height = `${height}px`;
|
||||
},
|
||||
frame: (r) => {
|
||||
const clock = clocks.get(r);
|
||||
if (clock) clock.ms += 1000 / 60;
|
||||
|
||||
Reference in new issue
Block a user