SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
qsg2drenderstats.h File Reference
#include <QString>
#include <QVector>
#include <QtGlobal>
#include <functional>
Include dependency graph for qsg2drenderstats.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMM::Render::Qsg2DRenderStats
 
struct  OpenSWMM::Render::Qsg2DRenderStats::PassStats
 

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

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.