Skip to content

Commit

Permalink
Add Vert/Tex Count Displays (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed May 10, 2022
1 parent 599d6f8 commit b4dcbc7
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<double> LoadingTimeList;
double AverageLoadingTime = 0;

for (unsigned long i = 0; i < NumModels; i++) {

Expand All @@ -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;



}

}

0 comments on commit b4dcbc7

Please sign in to comment.