![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QString>#include <QVector>#include <QtGlobal>#include <functional>Go to the source code of this file.
Classes | |
| class | OpenSWMM::Render::Qsg2DRenderStats |
| struct | OpenSWMM::Render::Qsg2DRenderStats::PassStats |
Namespaces | |
| namespace | OpenSWMM |
| namespace | OpenSWMM::Render |
QSG-2D-1M Phase 1 — per-sync render statistics for the 2D mesh / results QSG renderers.
A Qsg2DRenderStats value is filled in during one updatePaintNode() sync (dirty reasons, visible element counts, per-pass built-vertex and uploaded-byte counters, timings) and emitted as a single log line when runtime perf logging is enabled:
OPENSWMM_RENDER_PERF=1
Logging is silent (and the formatting path is never entered) unless the environment variable is set, so shipping builds pay only a cached bool check per sync.
The struct is deliberately Qt-Core-only (no Qt Quick / Gui types) so it can be unit-tested headlessly — see tests/unit/test_qsg2d_renderstats.cpp.