Skip to content

Commit

Permalink
Add Tracy Zones to Minimap drawing, and to ProjectileDrawer
Browse files Browse the repository at this point in the history
  • Loading branch information
Beherith authored and saurtron committed Dec 16, 2024
1 parent 71ff355 commit 156d9da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rts/Game/UI/MiniMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ void CMiniMap::DrawUnitRanges() const

void CMiniMap::DrawWorldStuff() const
{
RECOIL_DETAILED_TRACY_ZONE;
ZoneScoped;
glPushMatrix();

if (flipped) {
Expand Down
10 changes: 8 additions & 2 deletions rts/Rendering/Env/Particles/ProjectileDrawer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 156d9da

Please sign in to comment.