Skip to content

Commit

Permalink
Correclty color top-level tracy zones, add some minor once-per-frame …
Browse files Browse the repository at this point in the history
…zones.
  • Loading branch information
Beherith authored and saurtron committed Dec 16, 2024
1 parent c56fd08 commit 71ff355
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rts/Game/GameHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void CGameHelper::Kill()

void CGameHelper::Update()
{
RECOIL_DETAILED_TRACY_ZONE;
ZoneScopedC(tracy::Color::Goldenrod);
const int wdIdx = gs->frameNum & (waitingDamages.size() - 1);

// need to use explicit indexing because CUnit::DoDamage
Expand Down
2 changes: 1 addition & 1 deletion rts/Game/UI/MiniMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ void CMiniMap::DrawMinimizedButtonLoop() const

void CMiniMap::DrawForReal(bool useNormalizedCoors, bool updateTex, bool luaCall)
{
ZoneScopedN("MiniMap::DrawForReal");
ZoneScopedNC("MiniMap::DrawForReal", tracy::Color::Goldenrod);
if (minimized)
return;

Expand Down
2 changes: 1 addition & 1 deletion rts/Sim/Projectiles/ProjectileHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ void CProjectileHandler::Update()

// precache part of particles count calculation that else becomes very heavy
{
ZoneScopedN("ProjectileHandler::CountParticles");
ZoneScopedNC("ProjectileHandler::CountParticles", tracy::Color::Goldenrod);
frameCurrentParticles = 0;

for (const CProjectile* p : projectiles[true]) {
Expand Down
4 changes: 2 additions & 2 deletions rts/Sim/Units/UnitHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ bool CUnitHandler::QueueDeleteUnit(CUnit* unit)

void CUnitHandler::DeleteUnits()
{
RECOIL_DETAILED_TRACY_ZONE;
ZoneScopedC(tracy::Color::Goldenrod);
while (!unitsToBeRemoved.empty()) {
DeleteUnit(unitsToBeRemoved.back());
unitsToBeRemoved.pop_back();
Expand Down Expand Up @@ -343,7 +343,7 @@ void CUnitHandler::UpdateUnitMoveTypes()

void CUnitHandler::UpdateUnitLosStates()
{
ZoneScoped;
ZoneScopedC(tracy::Color::Goldenrod);
for (CUnit* unit: activeUnits) {
for (int at = 0; at < teamHandler.ActiveAllyTeams(); ++at) {
unit->UpdateLosStatus(at);
Expand Down

0 comments on commit 71ff355

Please sign in to comment.