User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12

Thread: Trying to optimize a rotation shader

  1. #11
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to optimize a rotation shader

    Quote Originally Posted by Pixelthief
    I'd guess that at least 50% of all sin/cos calls to the GPU are for integers.
    Their parameter is in radians, I would think nearly no calls are going to be integers.

    Very few shaders use sin/cos because it's more flexible to calculate a transform matrix cpu-side and pass that to the shader, so I wouldn't be surprised if sin/cos weren't very optimised.

  2. #12
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)

    Re: Trying to optimize a rotation shader

    Sorry to Jump in the middle, but it is true sin and cos are not very efficient function.

    i drop this link that have very useful asm function

    ftp://ftp.analog.com/pub/dsp/210xx/code_examples/apps_handbook_v1/function.zip

    them give you a very good idea how to be implemented in asm.


    Regards

    Regards,


    Fernando Vivolo

    ... new things are coming ...

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Tilemap Pixel Shader (aka "texture atlas" shader)
    By MuddyMole in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 10th May 2013, 08:21 PM
  2. optimize/remove delay on .mp3 files
    By SoftWarewolf in forum SWF/Flash Export Module Version 2.0
    Replies: 9
    Last Post: 20th August 2012, 01:32 AM
  3. 360 Rotation?
    By Ausomeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st January 2011, 09:37 PM
  4. My mfa is 322 mb! Please help me optimize!
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 15th June 2010, 04:33 AM
  5. Rotation
    By Almightyzentaco in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th April 2008, 07:45 PM

Posting Permissions

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