Skip to content

Commit

Permalink
Hydrogent: added reserved geometry data size to memory stats
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Jan 24, 2025
1 parent f239b1e commit 4556a1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Hydrogent/interface/HnRenderDelegate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ struct HnRenderDelegateMemoryStats
/// Vertex pool usage statistics.
VertexPoolUsage VertexPool;

/// The total size of geometry data that is reserved for loading, in bytes.
Uint64 ReservedGeometryDataSize = 0;

/// Texture atlas usage statistics.
struct TextureAtlasUsage
{
Expand Down
2 changes: 2 additions & 0 deletions Hydrogent/src/HnRenderDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,8 @@ HnRenderDelegateMemoryStats HnRenderDelegate::GetMemoryStats() const
MemoryStats.VertexPool.AllocatedVertexCount = VertexUsage.AllocatedVertexCount;
MemoryStats.VertexPool.PendingDataSize = m_LastPendingVertexDataSize;

MemoryStats.ReservedGeometryDataSize = m_GeometryPool->GetReservedDataSize();

MemoryStats.Atlas.CommittedSize = AtlasUsage.CommittedSize;
MemoryStats.Atlas.AllocationCount = AtlasUsage.AllocationCount;
MemoryStats.Atlas.TotalTexels = AtlasUsage.TotalArea;
Expand Down

0 comments on commit 4556a1d

Please sign in to comment.