Raised This Month: $ Target: $400
 0% 

Is it posible to optimize?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-07-2009 , 03:18   Re: Is it posible to optimize?
Reply With Quote #6

As fysiks said, if you have the value only for admins, then checking for admin access is unnecessary. About your question, there's really not much need for caching the value since it is probably set/unset only once, right?
The only possible way to optimize that (and this will still depend on the implementation of the Pawn compiler, therefore this is really low level) is to takethe == 1 off the comparison to simply if(norecoil_active[id]).
You can also make your zero-value Float vector static or global, avoiding creating it every single time PreThink is called.
vitorrd 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 22:36.


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