RegisterHookChain vs RegisterHam
My question is, which is the better to use? The RegisterHookChain of reapi or RegisterHam of hamsandwich?
|
Re: RegisterHookChain vs RegisterHam
RegisterHam
|
Re: RegisterHookChain vs RegisterHam
Could you give me a reason, why?
|
Re: RegisterHookChain vs RegisterHam
If you're using ReHLDS stick with ReAPI other than that there're no difference.
|
Re: RegisterHookChain vs RegisterHam
Quote:
|
Re: RegisterHookChain vs RegisterHam
Quote:
|
Re: RegisterHookChain vs RegisterHam
Quote:
|
Re: RegisterHookChain vs RegisterHam
There are some functions you can hook with reapi but not with hamsandwich and vice-versa, so it's situational. That is the only difference.
The answer to your question is: use the one that fits what you are working on. |
Re: RegisterHookChain vs RegisterHam
Quote:
|
Re: RegisterHookChain vs RegisterHam
Some of the posts in this topic are complete BS.
If you want your plugin to be usable by as many people are possible(if you want to post it here) then you should always use Ham when possible. Hamsandwich works in both regular hlds and rehlds. If you start using reapi then you restrict your plugin to rehlds for no reason and no gain. You really should not be thinking about speed when it comes to a line of code that's literally executed once per map. You should instead think about things that actually matter: how to design your plugin, writing your algorithms correctly and making them efficient, making sure there are no bugs etc. Even if the internals workings of hamsandwich were slower than reapi this would not be a reason to switch to rehlds/regamedll and reapi. Speed is not everything, and if the speed difference is exteremely small is it worth losint all the other benefits for a 0.0001 ms gain in speed? If one thing is slower than another it doesn't mean it is automatically bad. The important part is how slow. Is that part of the code performance critical? Also, as fysiks said being newer means nothing. Usually the newer stuff is what you should be "afraid" of. Ham has been around for ages, it is tried and tested. |
| All times are GMT -4. The time now is 17:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.