Skip to main content

Module debug

Module debug 

Source
Expand description

Debug overlay and performance profiling.

DebugOverlay renders FPS counters, entity counts, force field visualizations, collision bounds, and a math-function grapher directly into the scene as glyphs.

Disable in release builds by not calling DebugOverlay::render().

§Example

use proof_engine::prelude::*;
use proof_engine::debug::DebugOverlay;

let mut overlay = DebugOverlay::new();
// In your update loop:
// overlay.render(engine, dt);

Re-exports§

pub use profiler::FrameProfiler;
pub use graph::MathGraph;

Modules§

console
In-engine debug console with command registration, tab completion, and history.
graph
In-world math function grapher.
inspector
Runtime inspector, variable monitor, and in-game command registry.
metrics
Metrics collection and performance instrumentation.
profiler
Frame-level CPU timing profiler.

Structs§

DebugOverlay
Debug overlay: HUD glyph rendering of engine statistics.