com.unity.collections 2.1.0-pre.18

com.unity.collections

Source docs
Notes: processedReleased March 22, 2023

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2022.2 (2f1)

Package Dependencies

Features

  • UnsafeParallelHashMap.ParallelWriter.ThreadIndex is a public read-only property to mirror functionality in NativeParallelHashMap
  • NativeParallelHashMap.ParallelWriter.TryAdd that takes a thread index argument for advanced usage
  • UnsafeParallelHashMap.ParallelWriter.TryAdd that takes a thread index argument for advanced usage
  • `Starts/EndsWith` to `Native/UnsafeText` and `FixedStringN`.

📈 Improvements

  • `NativeReference/NativeList.GetUnsafePtr` returns typed pointer `T*` instead of typeless `void*`.
  • Updated Burst version in use to 1.8.3
  • Updated auto-generated allocator performance comparison documentation
  • NativeParallelHashMap.ParallelWriter.m\_ThreadIndex public property renamed to ThreadIndex
  • Allocator benchmark documentation updated to reflect corrected performance measurements
  • NativeParallelHashMap.ParallelWriter.TryAdd that takes a thread index argument is internal now
  • UnsafeParallelHashMap.ParallelWriter.TryAdd that takes a thread index argument is internal now
  • Significant performance improvements, especially when not burst compiled, across the board in all containers
  • Implementation for NativeRingQueue simplified and performance increased greatly
  • ### Deprecated

API Changes

  • GenPerformanceComparisonMd
  • InternalsVisibleTo reference to Tiny

🔧 Bug Fixes

  • All HashMap and HashSet types are now consistently initialized with a capacity no less than the `minGrowth` specified
  • Incorrect markdown syntax for header anchors
  • `UnsafeAppendBuffer` now safely reads and writes type `T`. Previously, it was possible to make unaligned reads and writes of type `T` which could violate platform architecture alignment requirements.
  • ### Security