Skip to main content

Module timing

Module timing 

Source
Expand description

Per-pass GPU timestamps — crcbl_frame::timing, re-exported — and how many passes this crate’s renderers record.

The timers are the frame core’s; what is this crate’s is the sum below, because the renderers it adds up are.

Structs§

FrameTimings
A whole frame’s per-pass costs.
PassTimers
A ring of timestamp query sets, one per frame in flight plus two; see the module docs.
PassTiming
What one pass cost on the GPU.

Constants§

MAX_TIMED_PASSES
How many passes one frame of this crate’s renderers records, at most.
STATISTICS_VAR
The variable that makes PassTimers count each pass’s work, with 1.

Functions§

statistics_columns
A pass’s counts as report columns: each stage the device counted, by a short name, and nothing for a stage it could not.
statistics_requested
Whether this process’s STATISTICS_VAR asks PassTimers::new to count each pass’s work; a device that cannot count still only times them.