![]() |
VR-Forces Developer's Guide
|
Live, throttled monitor of the indirect rendering queues.
Like DtIndirectGeometryDebugging, this class is a passive probe: it never mutates indirect rendering state and holds NO pointers or references to indirect objects between updates (neither strong nor weak). Geometries and registrars are re-gathered from the scene graph on the fly each poll; tracking state is keyed by captured address strings and numeric ids only. If an address is reused by a new object the track will briefly show merged data and self-correct on the next poll; this is acceptable for a debug probe.
Unlike DtIndirectGeometryDebugging (snapshot on demand), this class polls automatically on a configurable interval while its panel is enabled, in order to catch transient stuck states in the queues.

Classes | |
| struct | GeometryTrack |
| struct | RegistrarTrack |
Public Member Functions | |
| DtIndirectQueueHealthMonitor ()=delete | |
| DtIndirectQueueHealthMonitor (const DtIndirectQueueHealthMonitor &)=delete | |
| DtIndirectQueueHealthMonitor & | operator= (const DtIndirectQueueHealthMonitor &)=delete |
| virtual | ~DtIndirectQueueHealthMonitor () |
| virtual void | updateGui () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtIndirectQueueHealthMonitor & | instance (DtDe &de) |
Static Public Attributes | |
| static const unsigned int | theDefaultStuckPollThreshold |
Protected Member Functions | |
| DtIndirectQueueHealthMonitor (DtDe &de) | |
| virtual void | pollQueues () |
| virtual void | pollGeometry (DtIndirectGeometry &geometry, const std::string &geometryKey) |
| virtual void | pollRegistrar (DtIndirectGeometryRegistrar ®istrar, const std::string ®istrarKey) |
| virtual void | drawRegistrarTable () |
| virtual void | drawGeometryTable () |
| virtual void | drawSummary () |
| virtual void | drawHelp () |
| virtual void | addAlert (const std::string &message) |
| virtual void | drawAlertLog () |
| virtual void | pruneStaleTracks () |
| virtual void | gatherGeometries (std::vector< DtIndirectGeometry * > &outGeometries) const |
| virtual void | gatherGeometriesRecursive (osg::Node *node, std::vector< DtIndirectGeometry * > &outGeometries) const |
Static Protected Member Functions | |
| static std::string | toAddressKey (const void *pointer) |
Protected Attributes | |
| DtDe & | myDe |
| bool | myEnabled |
| bool | myEntitiesOnly |
| bool | myShowDeferredRows |
| int | myStuckPollThreshold |
| bool | myLogOnStuck |
| unsigned int | myPollCount |
| std::map< std::string, GeometryTrack > | myGeometryTracks |
| std::map< std::string, RegistrarTrack > | myRegistrarTracks |
| int | myFramesSincePoll |
| int | myPollIntervalFrames |
| std::vector< std::string > | myAlertLog |
|
delete |
not allowed.
|
delete |
not allowed.
|
virtual |
DTOR.
|
explicitprotected |
CTOR, use instance()
|
delete |
not allowed.
|
static |
singleton access, keyed on DtDe
|
virtual |
Poll the queues and draw the panel. Must be called once per frame from within an ImGui update. Polling only happens while the panel window is open and not collapsed, so a disabled or collapsed monitor has zero cost.
|
protectedvirtual |
poll all geometries/registrars: gathers from the scene graph, then dispatches to pollGeometry / pollRegistrar and prunes stale tracks
|
protectedvirtual |
update the tracking state for a single geometry, running stuck detection for the instance queue and the in-progress move count. Called once per geometry per poll from pollQueues.
|
protectedvirtual |
update the tracking state for a single registrar, running stuck detection for the register-model queue and the build number. Called at most once per registrar per poll from pollQueues.
|
protectedvirtual |
draw the registrar table
|
protectedvirtual |
draw the geometry table (only rows with activity, to keep it small)
|
protectedvirtual |
draw the one-line health summary
|
protectedvirtual |
draw the help button and its popup explaining the table columns
|
protectedvirtual |
append an entry to the alert log (bounded ring)
|
protectedvirtual |
draw the scrolling alert log
|
protectedvirtual |
prune tracks that were not seen for a while (deleted objects)
|
protectedvirtual |
gather all indirect geometries currently reachable from the renderer's environment root (including grid cells). Pointers are used transiently within the current frame only.
|
protectedvirtual |
recursive worker for gatherGeometries. Descends the scene graph, collecting DtIndirectGeometry nodes and the per-cell geometries of any DtIndirectGeometryGridNode encountered. Pointers are used transiently within the current frame only.
|
staticprotected |
capture an object address as a string key; tracks are keyed by these so no pointers to indirect objects are retained
number of consecutive polls a queue must be non-empty and unchanged before it is flagged as stuck
|
protected |
|
protected |
master enable; polling only happens while true
|
protected |
when true (default), only IGT_ENTITY geometries are monitored; terrain/layer geometries defer work by design and add noise
|
protected |
when true, deferred (not-culled, queue-non-empty) rows are shown dimmed in the geometry table; default off
|
protected |
stuck-detection threshold in polls (ImGui adjustable)
|
protected |
when true, a one-shot warning is logged when a stuck state is first detected, so it is captured even if nobody watches the panel
monotonically increasing poll counter (polls while enabled)
|
protected |
per-geometry tracking, keyed by geometry address string
|
protected |
per-registrar tracking, keyed by registrar address string
|
protected |
frames since the last gather-and-poll pass
|
protected |
how often to gather and poll (frames); higher = less timing impact
|
protected |
bounded log of stuck-detection events (newest last)