Nameless Engine
Loading...
Searching...
No Matches
ne::RenderStatistics::FrameTemporaryStatistics Struct Reference

Public Attributes

std::pair< std::mutex, float > mtxFrustumCullingMeshesTimeInMs
 
std::pair< std::mutex, float > mtxFrustumCullingLightsTimeInMs
 
std::atomic< size_t > iCulledMeshCount {0}
 
std::atomic< size_t > iCulledLightCount {0}
 
std::atomic< size_t > iDrawCallCount {0}
 

Detailed Description

Groups variables to continuously modify in the process of submitting a new frame. Variables here will be reset and saved to other struct as resulting values after a frame was submitted.

Member Data Documentation

◆ iCulledLightCount

std::atomic<size_t> ne::RenderStatistics::FrameTemporaryStatistics::iCulledLightCount {0}

Total number of lights discarded from submitting due to frustum culling.

◆ iCulledMeshCount

std::atomic<size_t> ne::RenderStatistics::FrameTemporaryStatistics::iCulledMeshCount {0}

Total number of meshes discarded from submitting due to frustum culling.

◆ iDrawCallCount

std::atomic<size_t> ne::RenderStatistics::FrameTemporaryStatistics::iDrawCallCount {0}

Stores the total number of draw calls made last frame.

◆ mtxFrustumCullingLightsTimeInMs

std::pair<std::mutex, float> ne::RenderStatistics::FrameTemporaryStatistics::mtxFrustumCullingLightsTimeInMs

Time in milliseconds spent last frame on frustum culling lights.

Remarks
Use mutex to update/read the value.

◆ mtxFrustumCullingMeshesTimeInMs

std::pair<std::mutex, float> ne::RenderStatistics::FrameTemporaryStatistics::mtxFrustumCullingMeshesTimeInMs

Time in milliseconds spent last frame on frustum culling meshes.

Remarks
Use mutex to update/read the value.

The documentation for this struct was generated from the following files: