Raised This Month: $ Target: $400
 0% 

advanced_tracers plugin by Ivan and OLO


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode