Skip to content

Commit ebc31f2

Browse files
committed
feat(config): Add default value for ghostZones.
1 parent 88a6378 commit ebc31f2

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

‎profiler/src/profiler/TracyConfig.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ void LoadConfig()
2525
if( ini_sget( ini, "timeline", "targetFps", "%d", &v ) && v >= 1 && v < 10000 ) s_config.targetFps = v;
2626
if( ini_sget( ini, "timeline", "dynamicColors", "%d", &v ) ) s_config.dynamicColors = v;
2727
if( ini_sget( ini, "timeline", "forceColors", "%d", &v ) ) s_config.forceColors = v;
28+
if( ini_sget( ini, "timeline", "ghostZones", "%d", &v ) ) s_config.ghostZones = v;
2829
if( ini_sget( ini, "timeline", "shortenName", "%d", &v ) ) s_config.shortenName = v;
2930
if( ini_sget( ini, "timeline", "horizontalScrollMultiplier", "%lf", &v1 ) && v1 > 0.0 ) s_config.horizontalScrollMultiplier = v1;
3031
if( ini_sget( ini, "timeline", "verticalScrollMultiplier", "%lf", &v1 ) && v1 > 0.0 ) s_config.verticalScrollMultiplier = v1;
@@ -59,6 +60,7 @@ bool SaveConfig()
5960
fprintf( f, "targetFps = %i\n", s_config.targetFps );
6061
fprintf( f, "dynamicColors = %i\n", s_config.dynamicColors );
6162
fprintf( f, "forceColors = %i\n", (int)s_config.forceColors );
63+
fprintf( f, "ghostZones = %i\n", (int)s_config.ghostZones );
6264
fprintf( f, "shortenName = %i\n", s_config.shortenName );
6365
fprintf( f, "horizontalScrollMultiplier = %lf\n", s_config.horizontalScrollMultiplier );
6466
fprintf( f, "verticalScrollMultiplier = %lf\n", s_config.verticalScrollMultiplier );

‎profiler/src/profiler/TracyConfig.hpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ struct Config
2121
bool achievementsAsked = false;
2222
int dynamicColors = 1;
2323
bool forceColors = false;
24+
bool ghostZones = true;
2425
int shortenName = (int)ShortenName::NoSpaceAndNormalize;
2526
bool saveUserScale = false;
2627
float userScale = 1.0f;

‎profiler/src/profiler/TracyView.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ void View::SetupConfig()
138138
m_vd.frameTarget = s_config.targetFps;
139139
m_vd.dynamicColors = s_config.dynamicColors;
140140
m_vd.forceColors = s_config.forceColors;
141+
m_vd.ghostZones = s_config.ghostZones;
141142
m_vd.shortenName = (ShortenName)s_config.shortenName;
142143
}
143144

0 commit comments

Comments
 (0)