Raised This Month: $ Target: $400
 0% 

set_task & player loop.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 06-12-2014 , 06:17   Re: set_task & player loop.
Reply With Quote #5

The answer is simple and at the same time complicated as fawk. Many people agree that the more tasks you have, the bigger the cpu consumption. But this kind of thing applies to hundreds, maybe thousands of tasks, far from what someone would use in a common plugin.

To make a good example, in my server, when saving user information in database I use a player specific task, because I don't need it do execute at the same time for everyone and it gives me the power to set frequency depending on player.
I don't use looping tasks that execute on all users because I don't need them, for setting things like models, hud info I use forwards because they're more reliable and useful.
The only example of looping task that executes on all players I can give are the server chat advertisements.
aron9forever 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 09:39.


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