Add a user manual achievement.

This commit is contained in:
Bartosz Taudul
2026-10-07 21:10:36 +02:00
parent 6e1f51ae70
commit afb16f68d3
6 changed files with 21 additions and 1 deletions

View File

@@ -214,6 +214,7 @@ Embed(PROFILER_FILES TextInstrumentationStatistics src/achievements/Instrumentat
Embed(PROFILER_FILES TextInstrumentFrames src/achievements/InstrumentFrames.md TEXT)
Embed(PROFILER_FILES TextIntro src/achievements/Intro.md TEXT)
Embed(PROFILER_FILES TextLoadTrace src/achievements/LoadTrace.md TEXT)
Embed(PROFILER_FILES TextManual src/achievements/Manual.md TEXT)
Embed(PROFILER_FILES TextSamplingIntro src/achievements/SamplingIntro.md TEXT)
Embed(PROFILER_FILES TextSaveTrace src/achievements/SaveTrace.md TEXT)

View File

@@ -7,4 +7,3 @@ Let's start our adventure by instrumenting your application and connecting it to
3. Define `TRACY_ENABLE` in your build configuration, for the whole application. Do not do it in a single source file because it won't work.
4. Start your application, and * Connect* to it with the profiler.
Please refer to the [user manual](https://github.com/wolfpld/tracy/releases) for more details.

View File

@@ -0,0 +1,10 @@
# Read the manual
Tracy ships with a built-in user manual that describes all of its features. You can open it by clicking the * Manual* icon in the top toolbar of the profiler window.
It's an alternative to external documentation — always available offline, and it covers everything from basic instrumentation to advanced sampling and memory profiling.
> [!TIP]
> **Tip**
>
> When you're unsure how to do something, the manual is the quickest way to find out. Keep it handy while you explore.

View File

@@ -810,6 +810,7 @@ static void DrawContents()
if( ImGui::Button( ICON_FA_BOOK " Manual" ) )
{
s_manualWindow.Show() = true;
if( tracy::s_config.achievements ) s_achievements->Achieve( "manual" );
}
ImGui::SameLine();
if( ImGui::Button( ICON_FA_EARTH_AMERICAS " Web" ) )

View File

@@ -11,6 +11,7 @@
#include "data/TextInstrumentationStatistics.hpp"
#include "data/TextIntro.hpp"
#include "data/TextLoadTrace.hpp"
#include "data/TextManual.hpp"
#include "data/TextSamplingIntro.hpp"
#include "data/TextSaveTrace.hpp"
@@ -130,9 +131,16 @@ AchievementItem ai_globalSettings = {
.text = Unpack( TextGlobalSettings )
};
AchievementItem ai_manual = {
.id = "manual",
.name = "Read the manual",
.text = Unpack( TextManual )
};
AchievementItem* ac_achievementsIntroItems[] = {
&ai_connectToServer,
&ai_globalSettings,
&ai_manual,
nullptr
};

View File

@@ -769,6 +769,7 @@ bool View::DrawImpl()
if( m_worker.GetZoneCount() > 100 * 1000 * 1000 ) Achieve( "100million" );
if( m_worker.GetCallstackSampleCount() > 0 ) Achieve( "samplingIntro" );
if( m_worker.AreFramesUsed() ) Achieve( "instrumentFrames" );
if( m_manualWindow.Show() ) Achieve( "manual" );
}
Attention( m_attnWorking );