Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <frame_stats.h>
Public Member Functions | |
void | RenderMenu () override |
void | RenderWindow () override |
void | NewFrame () |
Private Attributes | |
float | last_bounds_reset_time_ |
float | bounds_reset_interval_ |
int | history_sample_count_ |
bool | show_window_ |
RingBuffer< float > | delta_time_history_ |
float | delta_time_history_contiguous_ [BLOWBOX_PROFILER_HISTORY_MAX_SAMPLE_COUNT] |
float | delta_times_upper_bound_ |
float | delta_times_lower_bound_ |
float | average_delta_time_ |
float | fps_history_contiguous_ [BLOWBOX_PROFILER_HISTORY_MAX_SAMPLE_COUNT] |
int | view_frame_stats_as_fps_ |
Provides an overview of frame statistics.
Provides a simple debug window with frame statistics in the main debug menu.
void blowbox::FrameStats::NewFrame | ( | ) |
Starts a new profiling frame.
|
overridevirtual |
Renders the menu for the Profiler.
Implements blowbox::DebugWindow.
|
overridevirtual |
Renders the actual window for the Profiler.
Implements blowbox::DebugWindow.
|
private |
The average delta time of the delta times inside of the current delta_time_history_.
|
private |
The interval at which bounds should be reset.
|
private |
A history buffer for all delta times.
|
private |
Stores the delta times from the delta_time_history_ contiguously in memory.
|
private |
The lower bound of the delta times (i.e. the lowest delta time) that exist in the current delta_time_history_.
|
private |
The upper bound of the delta times (i.e. the highest delta time) that exist in the current delta_time_history_.
|
private |
Stores FPS values contiguously in memory.
|
private |
The number of samples that should be kept as history for all history buffers.
|
private |
The last time that bounds got reset in the profiler.
|
private |
Whether the frame stats window should be shown.
|
private |
Whether stats in the frame stats window should be shown as delta time or as FPS.