Raised This Month: $ Target: $400
 0% 

number of plugins and efficiency


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ntp
Member
Join Date: May 2012
Old 06-25-2014 , 03:42   number of plugins and efficiency
Reply With Quote #1

is it better efficiency and performance wise to combine 2 similar plugins into one (assuming no issues with conflict) if they share the same even hooks?
ntp is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 06-25-2014 , 05:51   Re: number of plugins and efficiency
Reply With Quote #2

It's modular by design - I've always seen them say keep separate. If your plugins were really that similar why would both be installed to begin with?
hamilton5 is offline
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 06-25-2014 , 07:20   Re: number of plugins and efficiency
Reply With Quote #3

Performance wise, if you have 10 plugins iterating through all clients and do something with them on round start for example, then yes, it is faster to combine all plugins. But it will be hell for you to support that kinda of mess.
And, unless you are doing something really dirty and heavy, the effect will be almost negligible.
xf117 is offline
Send a message via ICQ to xf117
ntp
Member
Join Date: May 2012
Old 06-25-2014 , 07:37   Re: number of plugins and efficiency
Reply With Quote #4

so in the end, theoretically it is faster, practically negligible. are there any examples of plugins that are really heavy on the server?
ntp is offline
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 06-25-2014 , 11:05   Re: number of plugins and efficiency
Reply With Quote #5

WCS probably would be a good example. Each race is a small plugin which not only uses regular Source and Sourcemod events, but also events provided by WCS core itself.
Amount of these races can exceed hundreds.
xf117 is offline
Send a message via ICQ to xf117
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 06-25-2014 , 11:36   Re: number of plugins and efficiency
Reply With Quote #6

I have a few servers that exceed about 130 plugins and be it 30 or 130 they will still run just fine. Its best to keep them separated unless you need one to help override the other or control such as overlays and whatever (which I had to do for a few). So if you ask me, keep them separated if you can.
Horsedick is offline
Reply



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 03:48.


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