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 8a72358 commit a2cd9f6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1028,13 +1028,13 @@ void ERS_CLASS_VisualRenderer::DrawViewportOverlay(int Index, ERS_CLASS_SceneMan
}

}

std::string SceneMessage = std::string("Scene: ") + std::to_string(TotalModels) + std::string(" Models, ") + std::to_string(InstancedModels) + std::string(" Instanced Models, ") + std::to_string(NumVerts) + std::string(" Verts, ") + std::to_string(NumIndices) + std::string(" Indices, ") + std::to_string(NumTextures) + std::string(" Textures"); // add info about number of instanced models vs real ones
std::string ResourcesMessage; // Contains info about actual system load (gpu ram, cpu ram, num loaded verts/indexes and num real textures on hardware)
std::string LoadingTimeMessage = std::string("Longest Asset Loading Time: ") + std::to_string(LongestLoadingTime) + std::string(" Seconds");

ImGui::Text(SceneMessage.c_str());
ImGui::Text(LoadingTimeMessage.c_str());
ImGui::Text("%s", SceneMessage.c_str());
ImGui::Text("%s", LoadingTimeMessage.c_str());

}

Expand Down

0 comments on commit a2cd9f6

Please sign in to comment.