Skip to content

test(extensions): add PathStyleExtension dash render-test matrix - #10579

Merged
chrisgervang merged 29 commits into
masterfrom
claude/deck-gl-path-dashing-2jnq8i
Aug 30, 2026
Merged

chrisgervang merged 29 commits into
masterfrom
claude/deck-gl-path-dashing-2jnq8i

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

Stack position: Part 1 of 6; base #10611. The merged offset-uniform prerequisite #10607 is included through master; #10611 owns the general viewport-equality correction that this benchmark layer depends on.

Goal

Establish visual and performance baselines for PathStyleExtension before changing production behavior. The goldens intentionally record both correct output and existing defects so later PRs have reviewable before/after evidence.

Changes

  • Add the WebGL dash render matrix for density, dash arrays, corners, zoom, DPR, billboard/flat parity, elevation, offsets, rounded paths, and picking-related coverage.
  • Add the interactive test/apps/dash-styles app.
  • Add reusable CPU and GPU PathStyle benchmark pages. The CPU benchmark measures a 100,000-segment phase pass; the GPU benchmark uses timestamp queries for plain, segment-dash, continuous-path, and offset-only variants.
  • Record the pre-fix continuous-offset periods and billboard/flat differences without changing production library source.

Benchmark baseline

Measured at 04a7dc5947 on Apple M1 Max, headless Chromium/ANGLE Metal, WebGL2, 3840×2160, with 20 timestamp-query samples. Values are median GPU milliseconds for one PathLayer pass:

Workload Plain Segment dash Continuous path Offset only
100K sparse 1 px strokes 2.389 2.603 2.610 2.447
256 overlapping 64 px strokes 0.460 0.561 0.563 0.480

The public compatibility phase helper took approximately 1.45 ms for nested XYZ and 3.12 ms for flat XYZ over 100,000 segments. These are hardware- and workload-specific baselines, not application FPS estimates.

The render baseline also quantifies the defects corrected above it: sparse billboard periods measured 52.0 px versus 34.8 px flat, and offsets 0/2/4/8 changed a continuous-path period from 43.4 px to 42.4/42.4/41.6 px.

Validation

  • Focused PathStyle headless tests pass.
  • Focused WebGL dash render suite: 42 passed, one intentional backend-selection skip.
  • Benchmark production build passes.
  • Required GitHub checks and automated reviews are tracked on the current head.

Note

Low Risk
Changes are confined to tests, benchmarks, and a dev app; production rendering code is untouched.

Overview
Adds test-only coverage for PathStyleExtension dashing ahead of behavior fixes—no changes to library source.

Introduces a large WebGL golden-image suite in path-dash.spec.ts (segment density, dash arrays, corners, circles at zoom, billboard vs flat parity, map zoom, 3D elevation, offsets, DPR2). Goldens intentionally capture current output, including known defects, with WebGPU skipped until WGSL exists and includeAA: true for diffs.

Adds the interactive test/apps/dash-styles Vite app to inspect dashes while zooming/pitching (segment matrix vs 3D elevation), comparing flat and billboard strokes.

Adds CPU (getDashOffsets on 100K segments) and GPU (WebGL2 timestamp-query) benchmark pages plus probe.gl registration and Vite build entries for reproducible performance baselines.

Reviewed by Cursor Bugbot for commit 8fd8b20. Bugbot is set up for automated code reviews on this repo. Configure here.

@coveralls

coveralls commented Aug 21, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.244% (-0.01%) from 82.254% — claude/deck-gl-path-dashing-2jnq8i into master

@chrisgervang
chrisgervang marked this pull request as ready for review August 21, 2026 23:15
Comment thread test/apps/dash-styles/app.js Resolved
@greptile-apps

greptile-apps Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR adds visual and performance baselines for PathStyleExtension dashing without changing production rendering behavior.

  • Adds a WebGL render-test matrix and golden images covering dash geometry, viewport, elevation, offset, and pixel-ratio variants.
  • Adds an interactive dash-style inspection app.
  • Adds reusable CPU and GPU benchmark pages and includes them in the benchmark build.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
test/apps/dash-styles/app.js Adds the interactive dash inspection app; current path-mode option handling and mode-specific layer IDs resolve the previously reported fallback and lifecycle issues.
test/render/test-cases/path-dash.spec.ts Adds the comprehensive PathStyleExtension dash render matrix with descriptive fixture and helper identifiers.
test/bench/path-style-extension-gpu.js Adds timestamp-query GPU benchmarks whose rendered table values are sourced only from fixed labels and numeric measurements.
test/bench/path-style-extension.bench.js Adds nested and flat-path CPU phase-generation benchmarks over 100,000 segments.
test/bench/vite.config.mjs Adds the CPU and GPU PathStyleExtension benchmark pages as production-build inputs.
test/apps/dash-styles/package.json Adds standalone app dependencies consistent with neighboring test apps; root dependency installation produces no lockfile change.

Reviews (20): Last reviewed commit: "Merge master after viewport equality pre..." | Re-trigger Greptile

Comment thread test/apps/dash-styles/app.js Resolved
Comment thread test/apps/dash-styles/app.js Resolved
Comment thread test/apps/dash-styles/package.json Resolved
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i branch from 5f96bab to db8c9bf Compare August 22, 2026 00:59
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i branch from db8c9bf to 344a365 Compare August 22, 2026 01:09
Comment thread test/apps/dash-styles/app.js Resolved
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i branch 2 times, most recently from e818583 to 2857c02 Compare August 22, 2026 22:15

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2857c02. Configure here.

claude and others added 4 commits August 22, 2026 15:28
…ension

Adds a render-test matrix and an interactive app for PathStyleExtension dashing,
covering segment density, dash arrays, corners, zoom levels, device pixel ratio,
3D elevation and billboard/flat parity.

The golden images record current behavior, defects included, so that subsequent
work shows up as a direct image diff. Measured from these goldens with
getDashArray [4, 5]:

- Six strips drawing the identical straight line diverge purely by vertex count.
  1, 2 and 4 segments dash correctly at a 43.4px period, 12 segments drifts to
  55.4px, and 40 and 120 segments render fully solid. Dash phase restarts at
  every vertex, so once a segment is shorter than one dash period nothing is
  discarded.
- dashJustified collapses the same way; justification is also per segment.
- highPrecisionDash renders all six strips identically and correctly, confirming
  the continuous-arclength mechanism works and is merely opt-in.
- billboard: true combined with highPrecisionDash is broken: the same geometry
  renders solid when dense and at a 52.0px period, 1.5x too long, when sparse,
  against 34.8px for the flat copy.
- Dash length grows along paths that climb in Z, because the CPU accumulates 3D
  distance while the shader coordinate measures 2D.

No source changes.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014GipN1niYRgRuLVat2wujw
@chrisgervang
chrisgervang force-pushed the claude/deck-gl-path-dashing-2jnq8i branch from 2857c02 to 4a870d7 Compare August 22, 2026 22:34
@chrisgervang
chrisgervang changed the base branch from master to codex/path-style-offset-uniforms August 29, 2026 00:08
Base automatically changed from codex/path-style-offset-uniforms to master August 30, 2026 18:46
@chrisgervang
chrisgervang changed the base branch from master to codex/viewport-equality-projection-state August 30, 2026 19:06
Base automatically changed from codex/viewport-equality-projection-state to master August 30, 2026 22:23
@chrisgervang
chrisgervang merged commit 4f4e897 into master Aug 30, 2026
8 checks passed
@chrisgervang
chrisgervang deleted the claude/deck-gl-path-dashing-2jnq8i branch August 30, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants