From 7aa575fd2e9e94f55467646535cc224784ea0fca Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 9 Jun 2021 21:07:46 +0200 Subject: [PATCH] Display GPU timer overflow notification. --- server/TracyView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 064986e1..c8c4c878 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3147,6 +3147,14 @@ void View::DrawZones() { TextFocused( "Timestamp accuracy:", TimeToString( v->period ) ); } + if( v->overflow != 0 ) + { + ImGui::Separator(); + ImGui::TextUnformatted( "GPU timer overflow has been detected." ); + TextFocused( "Timer resolution:", RealToString( 63 - TracyLzcnt( v->overflow ) ) ); + ImGui::SameLine(); + TextDisabledUnformatted( "bits" ); + } ImGui::EndTooltip(); } }