FramePacer.ixx File
Module defining the FramePacer class for frame rate control and timing synchronization. More...
Included Headers
#include <memory>
#include <thread>
#include <chrono>
#include <cassert>
#include <helios.engine.tooling.FrameStats>
#include <helios.util.time.Stopwatch>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | tooling |
|
Tooling utilities for diagnostics, metrics and developer overlays. More... | |
Classes Index
| class | FramePacer |
|
Controls and maintains a target frame rate through precise timing and pacing. More... | |
Description
Module defining the FramePacer class for frame rate control and timing synchronization.
File Listing
The file content with the documentation metadata removed is:
17export namespace helios::engine::tooling {
46 class FramePacer {
66 explicit FramePacer(std::unique_ptr<helios::util::time::Stopwatch> stopwatch) :
77 void setTargetFps(float fps) {
92 [[nodiscard]] float getTargetFps() const noexcept {
103 void beginFrame() {
123 [[nodiscard]] FrameStats sync() {
140 return FrameStats{ totalTime, workTime, waitTime };
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.