From c76387162bbb0f776a811222246962de5668e0b2 Mon Sep 17 00:00:00 2001 From: fredzio Date: Sat, 31 Jul 2021 23:08:50 +0200 Subject: [PATCH] Add projectiles number to the resources stats --- apps/openmw/mwphysics/physicssystem.cpp | 1 + components/resource/stats.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index ab880abaaa..63f25eb5f5 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -925,6 +925,7 @@ namespace MWPhysics { stats.setAttribute(frameNumber, "Physics Actors", mActors.size()); stats.setAttribute(frameNumber, "Physics Objects", mObjects.size()); + stats.setAttribute(frameNumber, "Physics Projectiles", mProjectiles.size()); stats.setAttribute(frameNumber, "Physics HeightFields", mHeightFields.size()); } diff --git a/components/resource/stats.cpp b/components/resource/stats.cpp index 4d07889d0c..b5975e28e3 100644 --- a/components/resource/stats.cpp +++ b/components/resource/stats.cpp @@ -401,6 +401,7 @@ void StatsHandler::setUpScene(osgViewer::ViewerBase *viewer) "", "Physics Actors", "Physics Objects", + "Physics Projectiles", "Physics HeightFields", });