Skip to content

Vector Rendering Performance – Testing and regression prevention 7/7 - #94

Merged
pmeems merged 3 commits into
developmentfrom
phase7-testing-regression
Nov 21, 2026
Merged

pmeems merged 3 commits into
developmentfrom
phase7-testing-regression

Conversation

@pmeems

@pmeems pmeems commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Motivation

Complete Phase 7 of the vector rendering performance plan with automated regression coverage and a repeatable benchmark for the production lazy-fill path.

Context

The earlier phases moved triangulation out of normal scene construction, added lazy mesh caching, viewport filtering, and reusable OpenGL buffers. This PR protects those behaviors as an integrated rendering lifecycle.

Key design decisions

  • Verify complex concave and holed geometry across fill/outline modes, pan, zoom, invalidation, and layer removal.
  • Explicitly document and test the polygon-only renderer's rejection of point and line layers.
  • Measure source-only scene preparation and lazy OpenGL fill without environment-sensitive CI timing thresholds.
  • Record a Release comparison at 2,459 features: 3.0 ms source-only scene preparation, 3.3 / 3.2 / 3.1 ms steady / pan / zoom, and exactly one triangulation per polygon.

Validation

  • CMake Debug x64: 479/479 non-interactive CTest cases passed.
  • MSBuild Debug x64: 0 warnings, 0 errors; all runnable Core, initialization, and ActiveX tests passed.
  • Release lazy-fill benchmark passed for 2,459 generated features.

Dependencies

None. No project memory changes were needed because the reusable behavior and benchmark limitations are already covered in the testing documentation.

- Cover point and line layer rejection explicitly.

- Verify lazy complex meshes across navigation, modes, invalidation, and removal.

- Measure the source-only scene and lazy OpenGL fill path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pmeems pmeems changed the title MapWinGIS6 – Vector Rendering Performance Improvement Plan – Phase 7 – Testing and regression prevention Vector Rendering Performance – Testing and regression prevention Nov 21, 2026

@Julian-MW Julian-MW 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.

Automated review. Final decision is with the human reviewer.

Test-and-docs-only PR completing Phase 7. The new tests match the implementation semantics (lazy fill-mesh cache keyed by layer id, outline mode never triangulates, explicit polygon-only rejection in BuildVectorRenderScene, prune clearing both mesh and GPU-buffer caches), and the counter assertions are safe because PerformanceCapture/DiagnosticCapture reset the process-wide diagnostics. Viewport math for the probed pixels checks out. CI is green. Three minor observations are left as line comments.

- Mark unavailable lazy OpenGL baselines as skipped.
- Reuse one named outline color across renderer tests.
- Document framebuffer-dependent CI coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI 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.

🟡 Changes recommended

The tests can skip genuine lazy-triangulation failures as capability issues, and direct cache pruning leaves the production layer-removal cleanup path untested.

3 open issues
What changed in this PR

This PR completes Phase 7 of the vector-rendering performance plan with regression tests and an opt-in benchmark for the production lazy-fill path. It changes tests and documentation, not production rendering code.

Changes:

  • Adds complex-polygon lifecycle coverage and explicit rejection tests for point and line layers.
  • Measures source-only scene preparation and lazy OpenGL rendering, checking triangulation reuse without timing thresholds.
  • Records Release benchmark results and documents OpenGL capability requirements.

Builds and tests were not run during this review.

File Description
tests/​MapWinGIS.Core.Tests/​VectorRenderSceneTests.cpp Generalizes the geometry fixture and tests rejection of point and line layers.
tests/​MapWinGIS.ActiveX.Tests/​VectorLayerRendererTests.cpp Adds lazy complex-polygon lifecycle coverage and shares the outline-color constant.
tests/​MapWinGIS.ActiveX.Tests/​RenderingBaselineTests.cpp Adds an opt-in lazy-fill benchmark with triangulation counters.
docs/​TESTING.md Documents regression coverage, OpenGL requirements, and benchmark results.
.github/​plans/​Vector-Rendering-Performance-Improvement.md Marks Phase 7 complete and records implementation details and limitations.

Review effort: Balanced

- Probe framebuffer capability before collecting lazy-render diagnostics.
- Fail benchmark and lifecycle tests when measured triangulation fails.
- Exercise cache pruning through the production empty-scene draw.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pmeems
pmeems enabled auto-merge (squash) November 21, 2026 22:28
@pmeems pmeems changed the title Vector Rendering Performance – Testing and regression prevention Vector Rendering Performance – Testing and regression prevention 7/7 Nov 21, 2026
@pmeems
pmeems merged commit 6b0205d into development Nov 21, 2026
17 checks passed
@pmeems
pmeems deleted the phase7-testing-regression branch November 21, 2026 23:14
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.

3 participants