mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Metrics window: shows indices along with triangles count (#299)
This commit is contained in:
		| @@ -8833,7 +8833,7 @@ void ImGui::ShowMetricsWindow(bool* opened) | |||||||
|     { |     { | ||||||
|         ImGui::Text("ImGui %s", ImGui::GetVersion()); |         ImGui::Text("ImGui %s", ImGui::GetVersion()); | ||||||
|         ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); |         ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); | ||||||
|         ImGui::Text("%d vertices, %d triangles", ImGui::GetIO().MetricsRenderVertices, ImGui::GetIO().MetricsRenderIndices / 3); |         ImGui::Text("%d vertices, %d indices (%d triangles)", ImGui::GetIO().MetricsRenderVertices, ImGui::GetIO().MetricsRenderIndices, ImGui::GetIO().MetricsRenderIndices / 3); | ||||||
|         ImGui::Text("%d allocations", ImGui::GetIO().MetricsAllocs); |         ImGui::Text("%d allocations", ImGui::GetIO().MetricsAllocs); | ||||||
|         static bool show_clip_rects = true; |         static bool show_clip_rects = true; | ||||||
|         ImGui::Checkbox("Show clipping rectangles when hovering ImDrawList", &show_clip_rects); |         ImGui::Checkbox("Show clipping rectangles when hovering ImDrawList", &show_clip_rects); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user