Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-04 15:56:12 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-04 15:56:12 +0300
commit53632ccb5ba164e0269e4a70cdd736e92e7ae4e8 (patch)
tree0a79f52193c6cb78164f4a13771a1676b1455a2a /server
parent44efb15df1eb586d27b69bb346e979eb1b45ae0a (diff)
Cleanup.
Diffstat (limited to 'server')
-rw-r--r--server/TracyTimelineController.cpp1
-rw-r--r--server/TracyTimelineController.hpp1
-rw-r--r--server/TracyView_CpuData.cpp3
-rw-r--r--server/TracyView_Options.cpp2
-rw-r--r--server/TracyView_Timeline.cpp10
5 files changed, 1 insertions, 16 deletions
diff --git a/server/TracyTimelineController.cpp b/server/TracyTimelineController.cpp
index 2fadf6cd..7cabd444 100644
--- a/server/TracyTimelineController.cpp
+++ b/server/TracyTimelineController.cpp
@@ -7,7 +7,6 @@ namespace tracy
TimelineController::TimelineController( View& view, Worker& worker )
: m_height( 0 )
- , m_offset( 0 )
, m_scroll( 0 )
, m_firstFrame( true )
, m_view( view )
diff --git a/server/TracyTimelineController.hpp b/server/TracyTimelineController.hpp
index e83b9baf..1d8e4f37 100644
--- a/server/TracyTimelineController.hpp
+++ b/server/TracyTimelineController.hpp
@@ -43,7 +43,6 @@ private:
unordered_flat_map<const void*, std::unique_ptr<TimelineItem>> m_itemMap;
float m_height;
- float m_offset;
float m_scroll;
bool m_firstFrame;
diff --git a/server/TracyView_CpuData.cpp b/server/TracyView_CpuData.cpp
index 3b3bd600..577553c9 100644
--- a/server/TracyView_CpuData.cpp
+++ b/server/TracyView_CpuData.cpp
@@ -19,12 +19,9 @@ bool View::DrawCpuData( double pxns, int& offset, const ImVec2& wpos, bool hover
const auto w = ImGui::GetContentRegionAvail().x - 1;
const auto ty = ImGui::GetTextLineHeight();
- const auto ostep = ty + 1;
const auto nspxdbl = 1.0 / pxns;
const auto nspx = int64_t( nspxdbl );
auto draw = ImGui::GetWindowDrawList();
- const auto to = 9.f;
- const auto th = ( ty - to ) * sqrt( 3 ) * 0.5;
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );
#ifdef TRACY_NO_STATISTICS
diff --git a/server/TracyView_Options.cpp b/server/TracyView_Options.cpp
index b7f887d6..77ab4f87 100644
--- a/server/TracyView_Options.cpp
+++ b/server/TracyView_Options.cpp
@@ -109,7 +109,7 @@ void View::DrawOptions()
{
char buf[64];
auto& item = (TimelineItemGpu&)( m_tc.GetItem( gpuData[i] ) );
- sprintf( buf, "%s context %zu", GpuContextNames[(int)gpuData[i]->type], item.GetIdx() );
+ sprintf( buf, "%s context %i", GpuContextNames[(int)gpuData[i]->type], item.GetIdx() );
ImGui::PushFont( m_smallFont );
ImGui::TextUnformatted( buf );
ImGui::PopFont();
diff --git a/server/TracyView_Timeline.cpp b/server/TracyView_Timeline.cpp
index 998f4d71..0c06e8b9 100644
--- a/server/TracyView_Timeline.cpp
+++ b/server/TracyView_Timeline.cpp
@@ -13,8 +13,6 @@
namespace tracy
{
-constexpr float MinVisSize = 3;
-
extern double s_time;
void View::HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w, double& pxns )
@@ -328,15 +326,7 @@ void View::DrawTimeline()
bool hover = ImGui::IsWindowHovered() && ImGui::IsMouseHoveringRect( wpos, wpos + ImVec2( w, h ) );
draw = ImGui::GetWindowDrawList();
- const auto nspx = 1.0 / pxns;
-
- ImGui::PushFont( m_smallFont );
- const auto sty = ImGui::GetTextLineHeight();
- const auto sstep = sty + 1;
- ImGui::PopFont();
-
const auto ty = ImGui::GetTextLineHeight();
- const auto ostep = ty + 1;
int offset = 0;
const auto to = 9.f;
const auto th = ( ty - to ) * sqrt( 3 ) * 0.5;