01-07-2021, 10:23 AM
(This post was last modified: 01-07-2021, 10:24 AM by ThoughtMango.)
Hi,
Another day another random find when looking through unity's profiler,
pre-allocating 32 elements in a NativeList removes a lot of alloc work inside the Job, like so (note, example is pretty extreme, 10s of simulations, but it's an 80% cut on standalone build)
Side Note: Value of 32 was chosen at random.
Another day another random find when looking through unity's profiler,
pre-allocating 32 elements in a NativeList removes a lot of alloc work inside the Job, like so (note, example is pretty extreme, 10s of simulations, but it's an 80% cut on standalone build)
Side Note: Value of 32 was chosen at random.