From 4556a1d590ff7f872ee2195b2dbc80c9085ff81a Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 23 Jan 2025 17:19:07 -0800 Subject: [PATCH] Hydrogent: added reserved geometry data size to memory stats --- Hydrogent/interface/HnRenderDelegate.hpp | 3 +++ Hydrogent/src/HnRenderDelegate.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Hydrogent/interface/HnRenderDelegate.hpp b/Hydrogent/interface/HnRenderDelegate.hpp index 8e6b9a4d..72f65714 100644 --- a/Hydrogent/interface/HnRenderDelegate.hpp +++ b/Hydrogent/interface/HnRenderDelegate.hpp @@ -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 { diff --git a/Hydrogent/src/HnRenderDelegate.cpp b/Hydrogent/src/HnRenderDelegate.cpp index 7e5fc5bb..f3cd6c39 100644 --- a/Hydrogent/src/HnRenderDelegate.cpp +++ b/Hydrogent/src/HnRenderDelegate.cpp @@ -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;