com.unity.collections 2.1.0-pre.18
Source docsNotes: processedReleased March 22, 2023
Unity Compatibility
Minimum Unity: 2022.2 (2f1)
Package Dependencies
- com.unity.burst (1.8.3)
- com.unity.modules.unityanalytics (1.0.0)
- com.unity.nuget.mono-cecil (1.11.4)
- com.unity.test-framework (1.3.2)
✨ 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
