Thread: [TUT] Semiclip
View Single Post
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 08-23-2007 , 14:17   Re: [TUT] Semiclip
Reply With Quote #10

Optimisation (IsColliding(id)):
new Ent,Float:Origin[3]

Should be:
static Ent,Float:Origin[3]

Reason being well it can be potentially called as often as ForwardThink(Ent).


Optimisation (public ForwardThink(Ent)):
new Float:Time

Should be:
static Float:Time

Same reason as the other.

IMO and I think it is covered on the WIKI, all fast ticking function variables should be declared static.


Cheers,

Orang
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd

Last edited by Orangutanz; 08-23-2007 at 14:20.
Orangutanz is offline