Add option to build editor without profiler

This commit is contained in:
Wojtek Figat
2024-11-06 09:29:26 +01:00
parent 3f50625cc3
commit e9dcb8a8bb
15 changed files with 40 additions and 2 deletions

View File

@@ -63,7 +63,11 @@ namespace FlaxEditor.Windows.Profiler
/// Initializes a new instance of the <see cref="SingleChart"/> class.
/// </summary>
/// <param name="maxSamples">The maximum samples to collect.</param>
#if USE_PROFILER
public SingleChart(int maxSamples = ProfilerMode.MaxSamples)
#else
public SingleChart(int maxSamples = 600)
#endif
: base(0, 0, 100, DefaultHeight)
{
_samples = new SamplesBuffer<float>(maxSamples);