AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   fakemeta & engine (https://forums.alliedmods.net/showthread.php?t=185185)

Neeeeeeeeeel.- 05-13-2012 17:29

fakemeta & engine
 
I have a doubt, in an hypothetical situation that I must use fakemeta and in one function is more efficient do it with engine...

Should I include engine? Or just continue using fakemeta?

And in the opposite way? That I must use engine and in one function is more efficient do it with fakemeta.

mottzi 05-13-2012 17:31

Re: fakemeta & engine
 
Why are you guys so afraid of including more than 2 includefiles? :D

Neeeeeeeeeel.- 05-13-2012 17:39

Re: fakemeta & engine
 
Quote:

Originally Posted by mottzi (Post 1708462)
Why are you guys so afraid of including more than 2 includefiles? :D

I'm not afraid to include more than 2 includefiles... It's just a question.

mottzi 05-13-2012 17:42

Re: fakemeta & engine
 
The rule of thumb is that you always use the most efficient way I think.

meTaLiCroSS 05-13-2012 17:55

Re: fakemeta & engine
 
If there's something in Fakemeta, that you can use with Engine, always CONSIDER ENGINE FIRST.

Not everything can be done with engine, sometimes you would be obliged to use Fakemeta to complete your work, but there exists some natives in Engine that are too in Fakemeta, in that case, use Engine, and if you're using both, don't worry, your computer wont explode while using one module more. That's all buddy :)

Hunter-Digital 05-13-2012 18:35

Re: fakemeta & engine
 
It's more of a personal preference when it comes to shared functionality between fakemeta and engine.

I know engine is *slightly* faster than fakemeta but it's also alot easier, fakemeta however has alot of stuff that engine doesn't and vice-versa as well... so, just use what you're comfortable with if you have more options... but you really shouldn't *convert* a native to something else that calls more natives, that's just wrong and wastes resources. (example: fm_* stocks from fakemeta_utils are really BAD.)

Neeeeeeeeeel.- 05-13-2012 19:58

Re: fakemeta & engine
 
Thanks to all.

Exolent[jNr] 05-13-2012 20:12

Re: fakemeta & engine
 
You use whichever is more efficient in what you are using.
If one is more efficient for one thing, doesn't mean you should use it for everything.
For example, entity_get_*() functions are more efficient than pev(), but fakemeta also has functionality that engine doesn't.
There is nothing wrong in using both fakemeta and engine, because they both have their own strengths.


All times are GMT -4. The time now is 00:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.