Search Issue Tracker

Fixed in 2018.2.X

Votes

0

Found in

2017.3.1f1

Issue ID

1004131

Regression

No

Vector3Int excessive GC allocation when used in List.Contains

Mono

-

To reproduce:

1. Open the project, attached by the user (Vector3IntGC.zip)
2. Open the "Main" scene
3. Open the Profiler and enable Deep Profile
4. Enter Play mode
5. Check the GC allocation of MyTest.ListContainsWithVector3IntUnityEquals

Expected: List.Contains doesn't allocate so much memory

Reproduced in 2017.2.2f1, 2017.3.1f1, 2018.1.0b8, 2018.2.0a1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.