forked from mirror/DotRecast
Span access
This commit is contained in:
parent
18b544845f
commit
7aeb31d369
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Buffers;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
|
|
|
@ -607,7 +607,8 @@ namespace DotRecast.Detour
|
|||
{
|
||||
const int batchSize = 32;
|
||||
Span<long> polyRefs = stackalloc long[batchSize];
|
||||
DtPoly[] polys = new DtPoly[batchSize];
|
||||
using RcRentedArray<DtPoly> polysRent = RcRentedArray.Rent<DtPoly>(batchSize);
|
||||
Span<DtPoly> polys = polysRent.AsSpan();
|
||||
int n = 0;
|
||||
|
||||
if (tile.data.bvTree != null)
|
||||
|
|
Loading…
Reference in New Issue