Libraries.Game.Graphics.Timing

4 classes

  • The GraphicsTimer measures how long the GPU spends on named phases of each frame, using Vulkan timestamp queries: the GPU writes its own clock at the start and end of each phase, and the timer reads the times back a frame or two later, without waiting.
  • A GraphicsTimerSlot is a GraphicsTimer's record of one frame in flight: its pool of timestamps and, for each stamp written, the phase it belongs to and whether it starts or ends it.
  • A GraphicsTimingFrame is the GPU time one frame took, measured by a GraphicsTimer: the whole frame, and each phase, such as "Shadows" or "G-buffer", in milliseconds.
  • A GraphicsTimingLog keeps the GPU times of frame after frame, as a GraphicsTimer reads them.