|
Author
|
Message
|
|
Junior Member
Join Date: Dec 2007
Location: Lithuania
|

01-21-2009
, 09:52
Re: plugin performance
|
#1
|
about 3) is it okay to do that stuff? i mean to register events only when amx_whatever is 1?
If everything is okay, i think it is good way improve performance.
i.e
case 1: using plugon (similar to 3rd question)
plugin checks amx_whatever value and gets 0, it dose not register any events,messages or whatever, yes? so plugin dose not interact with the game, yes?
case 2: not using plugon
plugin check amx_whaterver value and gets 0, it register couple of events like ResetHUD, or messages of round start.
Every new round or when HUD is reseted, plugin calls defined function and check if amx_whatever is 0 or 1?
QUESTION?
Why force plugin call its function, and check amx_whatever value? when amx_whatever is 0
__________________
I really like cookies
|
|
|
|