diff --git a/apps/openmw/mwgui/loadingscreen.cpp b/apps/openmw/mwgui/loadingscreen.cpp index 3a9aba7828..3d9cfa5c44 100644 --- a/apps/openmw/mwgui/loadingscreen.cpp +++ b/apps/openmw/mwgui/loadingscreen.cpp @@ -343,7 +343,12 @@ namespace MWGui MWBase::Environment::get().getInputManager()->update(0, true, true); - mResourceSystem->reportStats(mViewer->getFrameStamp()->getFrameNumber(), mViewer->getViewerStats()); + osg::Stats* const stats = mViewer->getViewerStats(); + const unsigned frameNumber = mViewer->getFrameStamp()->getFrameNumber(); + + stats->setAttribute(frameNumber, "Loading", 1); + + mResourceSystem->reportStats(frameNumber, stats); if (osgUtil::IncrementalCompileOperation* ico = mViewer->getIncrementalCompileOperation()) { ico->setMinimumTimeAvailableForGLCompileAndDeletePerFrame(1.f / getTargetFrameRate()); diff --git a/components/resource/stats.cpp b/components/resource/stats.cpp index 6730ddb303..963a9cf45d 100644 --- a/components/resource/stats.cpp +++ b/components/resource/stats.cpp @@ -54,6 +54,7 @@ namespace Resource constexpr std::string_view firstPage[] = { "FrameNumber", "", + "Loading", "Compiling", "WorkQueue", "WorkThread", @@ -75,7 +76,6 @@ namespace Resource "", "", "", - "", }; static_assert(std::size(firstPage) == itemsPerPage);