View Single Post
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 05-19-2006 , 10:04  
Reply With Quote #18

If you always do GET_CALLCLASS / SH_MCALL / release callclass, it _will_ be a lot more overhead, yes. You should store the callclass and use it, and release it when you don't need it anymore.

Even if you do that there's still some overhead (two indirect function calls and a conditional jump) when using this method. That's the prize you have to pay to make sure that any SH hooks are bypassed. If you don't care about this, you can keep using union hacks of course.

If you mean overhead from the compile time side of things, it probably does, yes. Because of the many templates and overloading and stuff like that.


Anyway I think I've fixed this bug, the fix is in CVS. Initally I wanted to compile a Win32 sourcemm binary for you, but I've found out that I don't have the hl2sdk; so please compile it yourself or ask BAIL or something =P

Thanks,
PM
__________________
hello, i am pm
PM is offline