View Single Post
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-02-2004 , 15:33  
Reply With Quote #6

Why not try this, instead of the two subtractions
Code:
#define SHOTGUN_X2 64
Then use
Code:
            vec2[0]-=SHOTGUN_X2;
Instead of
Code:
            vec2[0]-=SHOTGUN_AIMING; // Repeated substraction is faster then multiplication !             vec2[0]-=SHOTGUN_AIMING; // Repeated substraction is faster then multiplication !
The way I see that, one subtraction would be faster then two.. right?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline