Repository navigation
Vector Rendering Performance – Testing and regression prevention 7/7 - #94
Conversation
- 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>
Julian-MW
left a comment
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
🟡 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>

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
Validation
Dependencies
None. No project memory changes were needed because the reusable behavior and benchmark limitations are already covered in the testing documentation.