Performance: HkShape comparison with boxing allocation

Viktor Ferenczi shared this bug 4 months ago
Reported – Awaiting fix

Game version: 1.200.032

Method: Havok.HkShape.HandleEqualityComparer.Equals

There is boxing allocation and a useless null check inside the above method, so it could be optimized.

Optimize to: x.m_handle.ToInt64() == y.m_handle.ToInt64()

Also request aggressive inlining:

[MethodImpl(MethodImplOptions.AggressiveInlining)]

Replies (1)

photo
1

Hello, Viktor!

Thank you for letting us know about this. I have reported this internally.

Kind Regards

Laura, QA Department

Leave a Comment
 
Attach a file