Nameless Engine
|
#include <RenderStatistics.h>
Classes | |
struct | Counters |
struct | FpsLimitInfo |
struct | FramesPerSecondInfo |
struct | FrameTemporaryStatistics |
struct | TaskTimeInfo |
Public Member Functions | |
RenderStatistics (const RenderStatistics &)=delete | |
RenderStatistics & | operator= (const RenderStatistics &)=delete |
size_t | getFramesPerSecond () const |
size_t | getLastFrameDrawCallCount () const |
size_t | getLastFrameCulledMeshCount () const |
size_t | getLastFrameCulledLightCount () const |
float | getTimeSpentLastFrameWaitingForGpu () const |
float | getTimeSpentLastFrameOnFrustumCullingMeshes () const |
float | getTimeSpentLastFrameOnFrustumCullingLights () const |
Private Member Functions | |
void | saveAndResetTemporaryFrameStatistics () |
Private Attributes | |
FramesPerSecondInfo | fpsInfo |
FpsLimitInfo | fpsLimitInfo |
TaskTimeInfo | taskTimeInfo |
Counters | counters |
FrameTemporaryStatistics | frameTemporaryStatistics |
Friends | |
class | Renderer |
Stores various statistics about rendering (FPS for example).
size_t ne::RenderStatistics::getFramesPerSecond | ( | ) | const |
Returns the total number of frames that the renderer produced in the last second.
size_t ne::RenderStatistics::getLastFrameCulledLightCount | ( | ) | const |
Returns the total number of lights that were discarded from submitting to the rendering during the last frame.
size_t ne::RenderStatistics::getLastFrameCulledMeshCount | ( | ) | const |
Returns the total number of meshes that were discarded from submitting to the rendering during the last frame.
size_t ne::RenderStatistics::getLastFrameDrawCallCount | ( | ) | const |
Returns the total number of draw calls made last frame.
float ne::RenderStatistics::getTimeSpentLastFrameOnFrustumCullingLights | ( | ) | const |
Returns time in milliseconds that was spent last frame doing frustum culling for lights.
float ne::RenderStatistics::getTimeSpentLastFrameOnFrustumCullingMeshes | ( | ) | const |
Returns time in milliseconds that was spent last frame doing frustum culling for meshes.
float ne::RenderStatistics::getTimeSpentLastFrameWaitingForGpu | ( | ) | const |
Returns time in milliseconds that was spent last frame waiting for GPU to catch up to the CPU.
|
private |
Saves all temporary frame statistics as resulting values in non-temporary structs and resets all temporary statistics (variables in this struct).
|
private |
Info related to measuring frame count per second.
|
private |
Info related to FPS limiting.
|
private |
Temporary counters for a single frame.
|
private |
Info related to measuring time for specific tasks.