A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Math: optimizing for speed

  1. #1
    Qwaizang:syntax_entity_ Q__Hybrid's Avatar
    Join Date
    Aug 2005
    Posts
    270

    [F8] Math: optimizing for speed

    A function I have written relies heavily on trig to achieve the desired results, but using Math.atan2() takes too long to execute the script at the desired speed.

    Is it possible to calculate trig functions without using division, or should I just store the results of my calculations in an array ahead of time?

    +Q__
    Qwai•zang \kwî-'zan\ n [origin unknown] 1 : abstract designer, esp. of complex real-time experiments, c. 21st century

  2. #2
    5+5=55 Schfifty Five's Avatar
    Join Date
    Jun 2006
    Posts
    698
    I say store the results in an array ahead of time.. it'll make it a lot faster.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center