Re: [TUT] Modules and efficient scripting
Quote:
In fakemeta if you need the prethink forward you will register it. Whereas in engine you place it as a function client_PreThink(id). The difference is that fakemeta if it does not have any forwards to call (no plugins have this forward registered) it does not bother to get the forward from the engine and call the plugins. Where as engine sends the function call to all the plugins (it doesn't care if the plugins have the forward or nor). That is the difference. I think that the "fakemeta high" problem started from the things that people misunderstood, they thought that fakemeta will use cpu when it is asked to, that is what was making fakemeta > engine not the power of the module itself. Both modules are great, and work flawlessly, using one of them is good but using both of them will make it all more efficient. And this tutorial advices you to use less module communications because these are the problems when we talk about CPU usage (efficiency). |
Re: [TUT] Modules and efficient scripting
So it was not true at all?
One oddity though... it doesn't match up with the funcwiki, but I have engine disabled, but client_PreThink still works. |
Re: [TUT] Modules and efficient scripting
Because in this new version of AMXX, if a plugin require an module and it's not enabled will be enabled automaticly.
|
Re: [TUT] Modules and efficient scripting
Quote:
Quote:
|
Re: [TUT] Modules and efficient scripting
No, I mean, my plugin is written entirely in ham and fakemeta except for that function. I don't even #include engine. I would think that another include is secretly including engine, but I've tried calling some engine functions just to see, and I get errors... just not on client_PreThink().
PHP Code:
|
Re: [TUT] Modules and efficient scripting
Quote:
|
Re: [TUT] Modules and efficient scripting
I think I understand what you're saying now... and I think that's kind of dumb if it's true, lol. Though I would think it would say something like the function is not used in the compiler output, but it doesn't, it recognizes what it's for. PHP Code:
Heh, but that was it. I removed the engine.dll and it stopped prethinking. I suppose with sneaky functions like that, us who think we have removed engine from our plugins may have not. ;( |
Re: [TUT] Modules and efficient scripting
Quote:
|
Re: [TUT] Modules and efficient scripting
Quote:
|
Re: [TUT] Modules and efficient scripting
Engine module won't be auto-loaded by a public function (forward).
|
All times are GMT -4. The time now is 03:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.