Skip to main content

tooling Folder

Files Index

filehelios/engine/tooling/_module.ixx

Aggregate module for helios::engine::tooling namespace. More...

fileFpsMetrics.ixx

Module defining the FpsMetrics class for frame rate analysis and monitoring. More...

fileFramePacer.ixx

Module defining the FramePacer class for frame rate control and timing synchronization. More...

fileFrameStats.ixx

Module defining the FrameStats structure for frame timing information. More...

Description

helios::engine::tooling

Utilities for runtime diagnostics and developer tooling such as FPS and frame timing metrics.

Key Classes

ClassPurpose
FramePacerControls frame rate through timing and pacing (vsync-independent)
FpsMetricsAggregates frame timing data over a rolling window for analysis
FrameStatsPOD struct containing per-frame timing (work, wait, total)

Usage

 auto stopwatch = std::make_unique<helios::util::time::Stopwatch>();
 helios::engine::tooling::FramePacer pacer(std::move(stopwatch));
 pacer.setTargetFps(60.0f);
 
 metrics.setHistorySize(120);
 
 while (running) {
  pacer.beginFrame();
  // ... game logic and rendering ...
  auto stats = pacer.sync();
  metrics.addFrame(stats);
 
  float fps = metrics.getFps();
  float avgFrameTime = metrics.getFrameTimeMs();
 }


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.