Skip to main content

PlottingOpenGL::RenderingTimerStats

PlottingOpenGL::RenderingTimerStats

Accumulated timing statistics for rendering operations.

#include <RenderingTimer.hpp>

Public Functions

Name
void reset()
double avgBatchBuildingMs() const
Get average batch building time per frame.
double avgGpuUploadMs() const
Get average GPU upload time per frame.
double avgDrawCallMs() const
Get average draw call time per frame.
double avgTotalMs() const
Get average total frame time.
std::string summary() const
Get summary string.

Public Attributes

Name
std::chrono::microseconds batch_building_time
Time spent building CPU-side batches (vertex generation).
std::chrono::microseconds gpu_upload_time
Time spent uploading data to GPU.
std::chrono::microseconds draw_call_time
Time spent in actual draw calls.
std::chrono::microseconds total_frame_time
Total frame time.
int frame_count
Number of frames measured.
size_t vertices_uploaded
Number of vertices uploaded this frame.
size_t bytes_uploaded
Number of bytes uploaded this frame.

Public Functions Documentation

function reset

inline void reset()

function avgBatchBuildingMs

inline double avgBatchBuildingMs() const

Get average batch building time per frame.

function avgGpuUploadMs

inline double avgGpuUploadMs() const

Get average GPU upload time per frame.

function avgDrawCallMs

inline double avgDrawCallMs() const

Get average draw call time per frame.

function avgTotalMs

inline double avgTotalMs() const

Get average total frame time.

function summary

inline std::string summary() const

Get summary string.

Public Attributes Documentation

variable batch_building_time

std::chrono::microseconds batch_building_time {0};

Time spent building CPU-side batches (vertex generation).

variable gpu_upload_time

std::chrono::microseconds gpu_upload_time {0};

Time spent uploading data to GPU.

variable draw_call_time

std::chrono::microseconds draw_call_time {0};

Time spent in actual draw calls.

variable total_frame_time

std::chrono::microseconds total_frame_time {0};

Total frame time.

variable frame_count

int frame_count {0};

Number of frames measured.

variable vertices_uploaded

size_t vertices_uploaded {0};

Number of vertices uploaded this frame.

variable bytes_uploaded

size_t bytes_uploaded {0};

Number of bytes uploaded this frame.


Updated on 2026-11-13 at 20:25:41 +0000