Raised This Month: $ Target: $400
 0% 

Is using "entity think" faster than set_task and remove_task?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tm.
Member
Join Date: Apr 2010
Old 07-28-2010 , 13:05   Re: Is using "entity think" faster than set_task and remove_task?
Reply With Quote #1

I have a question related to this subject. What is more eficient (less resources) if you need to run a loop task on all players: to set individual task for each player at connection, or to set one task/entity that loops through all players and executes the function. This question might sound stupid, but I'm just curious.

Last edited by tm.; 07-28-2010 at 13:13.
tm. is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-28-2010 , 14:56   Re: Is using "entity think" faster than set_task and remove_task?
Reply With Quote #2

Quote:
Originally Posted by tm. View Post
I have a question related to this subject. What is more eficient (less resources) if you need to run a loop task on all players: to set individual task for each player at connection, or to set one task/entity that loops through all players and executes the function. This question might sound stupid, but I'm just curious.
One task, then loop through all players in the function.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
tm.
Member
Join Date: Apr 2010
Old 07-28-2010 , 15:44   Re: Is using "entity think" faster than set_task and remove_task?
Reply With Quote #3

Quote:
Originally Posted by wrecked_ View Post
One task, then loop through all players in the function.
Thanks.
tm. 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 00:11.


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