callfunc
How efficient is callfunc? Is it fast enough to be able to call a function in a client prethink?
|
Re: callfunc
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. |
Re: callfunc
thx 4 response. good info to know.
|
| All times are GMT -4. The time now is 00:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.