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 c3a9149 commit 599d6f8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1041,12 +1041,15 @@ 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;

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

if (SceneManager->Scenes_[SceneManager->ActiveScene_]->Models[i]->TotalLoadingTime_ > LongestLoadingTime) {
LongestLoadingTime = SceneManager->Scenes_[SceneManager->ActiveScene_]->Models[i]->TotalLoadingTime_;
}
Expand Down

0 comments on commit 599d6f8

Please sign in to comment.