List of high cpu usage functions
Would be nice to know, which functions uses a lot of cpu. (they run a lot times in one sec)
|
Re: List of high cpu usage functions
Would be nice to know correctly method to do any code.
For functions, search in forum the version of amxmodx can dump logs with the most functions and their usage and calls. |
Re: List of high cpu usage functions
AddToFullPack
|
Re: List of high cpu usage functions
Hokking FM_Think, FM_Touch, FM_StartFrame, FM_AddToFullPack.
Or with engine : pfn_think, pfn_touch (or old one but still alive vexd_pfntouch), server_frame. Instead of FM_Think and pfn_think, use register_think or hook Ham_Think, depending on your needs. Instead of FM_Touch, pfn_touch and vexd_pfntouch, use register_touch or hook Ham_Touch, depending on your needs. Try to optimize FM_AddToFullPack callback and to not hook function in lot of plugins. Try to avoid hooking FM_StartFrame and server_frame. |
Re: List of high cpu usage functions
It really depends on what you want to do in the functions themselves.
|
Re: List of high cpu usage functions
Thanks, the list will be helpful for many users who wants to optimize plugins.
|
Re: List of high cpu usage functions
Your work is carry the information to the other people. People see your blog and get benefit.
|
| All times are GMT -4. The time now is 23:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.