Raised This Month: $ Target: $400
 0% 

set_task with B flag - replace with entity think API?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-28-2012 , 07:18   Re: set_task with B flag - replace with entity think API?
Reply With Quote #5

It creates 5 tasks and what ? It changes nothing really.

The code for set_task works like that : AMXX hooks ServerFrame, does a check so the set_task code is executed each 0.1 second, then this code loops on all registered tasks.

5, 10, 15 tasks, you won't see any significant changes. All checks and such are done in the module, it's optimized and fast.

Your way to use a global think, could be useful only if you need to use a think for 0.1 second _only_ in several plugins, so you would save entities. That's only the advantage I can see.
__________________

Last edited by Arkshine; 09-28-2012 at 07:30.
Arkshine 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 08:17.


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