@@ -347,16 +347,17 @@ void USDViewer::Render()
347
347
348
348
m_Stage.FinalColorTarget ->ReleaseTarget ();
349
349
350
- const auto & CtxStats = m_pImmediateContext->GetStats ();
351
- m_Stats.NumDrawCommands = CtxStats.CommandCounters .Draw + CtxStats.CommandCounters .DrawIndexed ;
352
- m_Stats.NumPSOChanges = CtxStats.CommandCounters .SetPipelineState ;
353
- m_Stats.NumSRBChanges = CtxStats.CommandCounters .CommitShaderResources ;
354
- m_Stats.NumVBChanges = CtxStats.CommandCounters .SetVertexBuffers ;
355
- m_Stats.NumIBChanges = CtxStats.CommandCounters .SetIndexBuffer ;
356
- m_Stats.NumBufferMaps = CtxStats.CommandCounters .MapBuffer ;
357
- m_Stats.NumTriangles = CtxStats.GetTotalTriangleCount ();
358
- m_Stats.NumLines = CtxStats.GetTotalLineCount ();
359
- m_Stats.NumPoints = CtxStats.GetTotalPointCount ();
350
+ const auto & CtxStats = m_pImmediateContext->GetStats ();
351
+ m_Stats.NumDrawCommands = CtxStats.CommandCounters .Draw + CtxStats.CommandCounters .DrawIndexed ;
352
+ m_Stats.NumPSOChanges = CtxStats.CommandCounters .SetPipelineState ;
353
+ m_Stats.NumSRBChanges = CtxStats.CommandCounters .CommitShaderResources ;
354
+ m_Stats.NumVBChanges = CtxStats.CommandCounters .SetVertexBuffers ;
355
+ m_Stats.NumIBChanges = CtxStats.CommandCounters .SetIndexBuffer ;
356
+ m_Stats.NumBufferMaps = CtxStats.CommandCounters .MapBuffer ;
357
+ m_Stats.NumBufferUpdates = CtxStats.CommandCounters .UpdateBuffer ;
358
+ m_Stats.NumTriangles = CtxStats.GetTotalTriangleCount ();
359
+ m_Stats.NumLines = CtxStats.GetTotalLineCount ();
360
+ m_Stats.NumPoints = CtxStats.GetTotalPointCount ();
360
361
}
361
362
362
363
void USDViewer::PopulateSceneTree (const pxr::UsdPrim& Prim)
@@ -695,7 +696,7 @@ void USDViewer::UpdateUI()
695
696
" SRB\n "
696
697
" VB\n "
697
698
" IB\n "
698
- " Buffer maps \n "
699
+ " Buffer M + U \n "
699
700
" Memory Usage\n "
700
701
" Vertex Pool\n "
701
702
" Index Pool\n "
@@ -716,7 +717,7 @@ void USDViewer::UpdateUI()
716
717
" %d\n "
717
718
" %d\n "
718
719
" %d\n "
719
- " %d\n "
720
+ " %d + %d \n "
720
721
" \n "
721
722
" %s / %s (%d allocs, %dK verts)\n "
722
723
" %s / %s (%d allocs)\n "
@@ -729,7 +730,7 @@ void USDViewer::UpdateUI()
729
730
m_Stats.NumSRBChanges ,
730
731
m_Stats.NumVBChanges ,
731
732
m_Stats.NumIBChanges ,
732
- m_Stats.NumBufferMaps ,
733
+ m_Stats.NumBufferMaps , m_Stats. NumBufferUpdates ,
733
734
VertPoolUsedSizeStr.c_str (), VertPoolCommittedSizeStr.c_str (), MemoryStats.VertexPool .AllocationCount , MemoryStats.VertexPool .AllocatedVertexCount / 1000 ,
734
735
IndPoolUsedSizeStr.c_str (), IndPoolCommittedSizeStr.c_str (), MemoryStats.IndexPool .AllocationCount ,
735
736
AtlasCommittedSizeStr.c_str (), static_cast <double >(MemoryStats.Atlas .AllocatedTexels ) / static_cast <double >(std::max (MemoryStats.Atlas .TotalTexels , Uint64{1 })) * 100.0 , MemoryStats.Atlas .AllocationCount );
0 commit comments