Hello,
First of all, this is only happening in the editor! In builds all 3 streams are setup in 0.25ms.
I setup 3 NativeStreams with the same parameters and the first 2 take 0.25ms and the last one around 2ms.
After 2, fallback allocations are happening. Can we do something about it like increase the size before this is happening? Those allocations in editor are often tripping me up. ![]()
int createAmount = 250000;
Profiler.BeginSample("Setting upstream1");
NativeStream stream1 = new NativeStream(createAmount, Allocator.TempJob);
Profiler.EndSample();
Profiler.BeginSample("Setting up stream2");
NativeStream stream2 = new NativeStream(createAmount, Allocator.TempJob);
Profiler.EndSample();
Profiler.BeginSample("Setting up stream3");
NativeStream stream3 = new NativeStream(createAmount, Allocator.TempJob);
Profiler.EndSample();