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

@@ -36,7 +36,11 @@ namespace FlaxEditor.Windows.Profiler
/// Initializes a new instance of the <see cref="SamplesBuffer{T}"/> class.
/// </summary>
/// <param name="capacity">The maximum buffer capacity.</param>
#if USE_PROFILER
public SamplesBuffer(int capacity = ProfilerMode.MaxSamples)
#else
public SamplesBuffer(int capacity = 600)
#endif
{
_data = new T[capacity];
_count = 0;