Re: IOS floating point performance
Re: IOS floating point performance
- Subject: Re: IOS floating point performance
- From: Thomas Wetmore <email@hidden>
- Date: Thu, 08 Aug 2013 10:53:20 -0400
Returning strictly to the issue of trig performance. A solution I
have used in the past is to initialize tables of trig functions,
say by calling sin() and cos() for every half a degree, and then
interpolating those tables, never calling sin() or cos() again.
I did this 29 years ago on an Atari 520ST to simulate the solar
system, and it worked well. You only need enough trig accuracy
for graphics to plot to the correct pixels. It takes very few
decimal places to get that accuracy.
Tom Wetmore
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden