From 7947087694d979dc8b07271fcdfde9d19e4072e3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 29 Feb 2020 00:49:42 +0100 Subject: [PATCH] Print frame image compression ration. --- server/TracyView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e733169e..d31cefc7 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -12919,7 +12919,16 @@ void View::DrawPlayback() ImGui::EndTooltip(); } ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); TextFocused( "Frame:", RealToString( GetFrameNumber( *frameSet, fi->frameRef, m_worker.GetFrameOffset() ) ) ); + ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); + char buf[64]; + auto ptr = PrintFloat( buf, buf+62, 100.f * fi->csz / ( size_t( fi->w ) * size_t( fi->h ) / 2 ), 2 ); + memcpy( ptr, "%", 2 ); + TextFocused( "Ratio:", buf ); ImGui::End(); }