❔ Excessive runtime allocation using Dictionary with struct key TryGetValue
Doing some optimization testing using spatial partitioning of 2D scenes and have hit a weird runtime allocation problem that I've tracked down to Dictionary.TryGetValue.
I am storing Chunk instances in a Dictionary with a custom int2 struct type that implements IEquatable.
Here's my index type:
Any tips to fix or avoid this?
I am storing Chunk instances in a Dictionary with a custom int2 struct type that implements IEquatable.
Here's my index type:
Any tips to fix or avoid this?
