RSS Feed

Lerp and Slerp Performance

August 14, 2018

Everywhere you go there are warnings about how slow Slerp is when compared with Lerp. Indeed, the published algorithms support this. Slerp has many trigonometric functions while Lerp survives on multiply and divide. When I ran a test on my Mac, Slerp was less than 15% slower. How can this be? It may be that Unity is using an augmented Lerp when it is applicable. It could also be that an Intel Core i7 has faster maths for trigs than anticipated.

Share on Facebook
Share on Twitter
Please reload

Featured Posts

My limited tests show that Dictionary is faster than `SortedList`. The latter uses `Array.BinarySearch` to find entries. I have read other performance...

How are C# Dictionaries so Fast?

August 27, 2018

1/5
Please reload

Recent Posts

April 12, 2018

Please reload

Archive
Please reload

Search By Tags
Please reload

Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square