refactor: list pool initial count and capacity parameters added
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Syntriax.Engine.Physics2D;
|
||||
|
||||
public class RaycastResolver2D : IRaycastResolver2D
|
||||
{
|
||||
private readonly ListPool<Line2D> lineCacheQueue = new(() => new(4));
|
||||
private readonly ListPool<Line2D> lineCacheQueue = new(initialListCapacity: 4);
|
||||
|
||||
RaycastResult? IRaycastResolver2D.RaycastAgainst<T>(T shape, Ray2D ray, float length)
|
||||
{
|
||||
|
Reference in New Issue
Block a user