From 156d9da3649a8677374cd08d42be36bc36ff7674 Mon Sep 17 00:00:00 2001 From: Beherith Date: Tue, 2 Jan 2024 10:40:05 +0100 Subject: [PATCH] Add Tracy Zones to Minimap drawing, and to ProjectileDrawer --- rts/Game/UI/MiniMap.cpp | 2 +- rts/Rendering/Env/Particles/ProjectileDrawer.cpp | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/rts/Game/UI/MiniMap.cpp b/rts/Game/UI/MiniMap.cpp index 5684996bf6..96200dcd67 100644 --- a/rts/Game/UI/MiniMap.cpp +++ b/rts/Game/UI/MiniMap.cpp @@ -1915,7 +1915,7 @@ void CMiniMap::DrawUnitRanges() const void CMiniMap::DrawWorldStuff() const { - RECOIL_DETAILED_TRACY_ZONE; + ZoneScoped; glPushMatrix(); if (flipped) { diff --git a/rts/Rendering/Env/Particles/ProjectileDrawer.cpp b/rts/Rendering/Env/Particles/ProjectileDrawer.cpp index 85f6caf5b3..8383011737 100644 --- a/rts/Rendering/Env/Particles/ProjectileDrawer.cpp +++ b/rts/Rendering/Env/Particles/ProjectileDrawer.cpp @@ -654,8 +654,14 @@ void CProjectileDrawer::DrawProjectilesMiniMap() glDisable(GL_PROGRAM_POINT_SIZE); sh.Enable(); - CProjectile::GetMiniMapLinesRB().DrawArrays(GL_LINES); - CProjectile::GetMiniMapPointsRB().DrawArrays(GL_POINTS); + { + ZoneScopedN("DrawProjectilesMiniMap::MiniMapLinesRB"); + CProjectile::GetMiniMapLinesRB().DrawArrays(GL_LINES); + } + { + ZoneScopedN("DrawProjectilesMiniMap::MiniMapPointsRB"); + CProjectile::GetMiniMapPointsRB().DrawArrays(GL_POINTS); + } sh.Disable(); if (pntsz)