[ H3LP ] Module hooks
Hello, I'm with a simple doubt. If the module is running in server, all the hooks that I don't have registered is called anyway?
I'm asking this because developers said that "FM_AddToFullPack" causes lag in server, but I see in source-code of the half-life that this is hook called too, so if it's called in source of the game, why cause lag if I register it? Code:
|
Re: [ H3LP ] Module hooks
Calling into Pawn VM is what takes most of the processing power, it's not the same as calling a C function, and with AddToFullPack that can happen thousands of times per second. Anyway it's not as bad as people make it seem, just don't do any heavy processing in there.
|
Re: [ H3LP ] Module hooks
Clarification :-
Dont use alot of natives, this forward has particular natives for just it, try using what you can. Create static variables instead of new. Try avoid creating any array inside of it by using bitsum if its achievable. |
| All times are GMT -4. The time now is 12:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.