Raised This Month: $ Target: $400
 0% 

[SUG] about plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
feCt
Junior Member
Join Date: Dec 2008
Old 01-01-2009 , 08:24   [SUG] about plugins
Reply With Quote #1

It's true if i collate a few plugins in one *.amxx file , then server less loaded ?
feCt is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-01-2009 , 09:04   Re: [SUG] about plugins
Reply With Quote #2

Well this has nothing to do with suggestion(You are not suggesting anything ). Ofc the server gets every plugin "singly", and ye it could take little less. Still the difference is so minimal that none can notice it and it wouldn't worth it. Plugins are more easier to handle also if they are separated.

Last edited by SnoW; 01-01-2009 at 09:06.
SnoW is offline
Send a message via MSN to SnoW
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-01-2009 , 12:08   Re: [SUG] about plugins
Reply With Quote #3

Quote:
Originally Posted by SnoW View Post
Still the difference is so minimal that none can notice it and it wouldn't worth it.
This actually depends on the functions that are being called. If you have 10 plugins all calling Ham_Spawn (for example) and doing a bunch of stuff in that function, you might very well notice higher cpu usage or slower server speeds for a second.

Quote:
Plugins are more easier to handle also if they are separated.
Yup. So much easier to find an issue if they are separated.


@ OP, moved to OT
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 01-01-2009 , 13:02   Re: [SUG] about plugins
Reply With Quote #4

I guess, if you'd merge the plugins and really work for it, it would make things faster. I myself wouldn't do this, because the workload is just too big comparing to the result.

But yes, basically it would be faster for the server to do:
Code:
public event(id) { if (is_user_alive(id)) { do_thing_1(); do_thing_2(); } }

... rather than calling the function on two different plugins, and check if the user is alive on both plugins.

But yes, it's just alot of work. Servers today should be able to handle AMXx and alot of plugins easily.
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland 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 02:05.


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