Raised This Month: $ Target: $400
 0% 

callfunc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-30-2007 , 18:43   Re: callfunc
Reply With Quote #1

I would guess not. Every parameter passes through 4 for loops on callfunc_end. This means, with only a 2 parameter function, there are 8 loop iterations for each client's prethink, and with 32 clients, that's 256 iterations a step. Factor in that it's actually doing something rather than nothing in each iteration, and it would most likely slow things down.

But, if you decide to do it anyway, I'd recommend getting the plugin and function id beforehand and using callfunc_begin_i, so that regular callfunc_begin doesn't have to calculate it each time.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 01-30-2007 , 18:45   Re: callfunc
Reply With Quote #2

thx 4 response. good info to know.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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:38.


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