From b4dcbc768574fd5ec313a25979dc1b591f4862ef Mon Sep 17 00:00:00 2001 From: datacrystals Date: Tue, 10 May 2022 03:02:15 +0000 Subject: [PATCH] Add Vert/Tex Count Displays (#162) --- .../ERS_CLASS_VisualRenderer.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_VisualRenderer.cpp b/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_VisualRenderer.cpp index edcf0085ac..1982c4e390 100644 --- a/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_VisualRenderer.cpp +++ b/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_VisualRenderer.cpp @@ -1041,12 +1041,12 @@ void ERS_CLASS_VisualRenderer::DrawViewportOverlay(int Index, ERS_CLASS_SceneMan // Show Loading Time Info if (Viewports[Index]->ShowLoadingInfo_) { - + unsigned long NumModels = SceneManager->Scenes_[SceneManager->ActiveScene_]->Models.size(); double LongestLoadingTime = 0; double ShortestLoadingTime = 65535; - std::vector LoadingTimeList; + double AverageLoadingTime = 0; for (unsigned long i = 0; i < NumModels; i++) { @@ -1057,10 +1057,14 @@ void ERS_CLASS_VisualRenderer::DrawViewportOverlay(int Index, ERS_CLASS_SceneMan ShortestLoadingTime = SceneManager->Scenes_[SceneManager->ActiveScene_]->Models[i]->TotalLoadingTime_; } - LoadingTimeList.push_back(SceneManager->Scenes_[SceneManager->ActiveScene_]->Models[i]->TotalLoadingTime_); + AverageLoadingTime += SceneManager->Scenes_[SceneManager->ActiveScene_]->Models[i]->TotalLoadingTime_; } + AverageLoadingTime /= NumModels; + + + } }