Raised This Month: $51 Target: $400
 12% 

Fakemeta conversions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-27-2009 , 10:25   Fakemeta conversions
Reply With Quote #1

Some days ago, Stupok (talking about the conversion of functions provided by the cstrike module to fakemeta) made this question:

Quote:
Originally Posted by stupok View Post
I know that people request this kind of conversion a lot, but I don't see how this is better than just using the functions in the cstrike module. Am I missing something? Is there some benefit?
After some talk and some tests it was made clear that using converted functions using the fakemeta module to replace those provided by cstrike is not only inefficient but also doesn't bring any benefit.

I became curious to see what happens between Engine and Fakemeta . So, i profiled some functions provided by "fakemeta_util.inc" against engine natives (that do exactly the same).

The results go as attachment. If you think that the tests are not correctly made feel free to do them yourself and post.
Attached Files
File Type: sma Get Plugin or Get Source (entity_set_origin.sma - 965 views - 706 Bytes)
File Type: txt entity_set_origin.txt (1.1 KB, 250 views)
File Type: sma Get Plugin or Get Source (is_in_viewcone.sma - 898 views - 567 Bytes)
File Type: txt is_in_viewcone.txt (2.0 KB, 223 views)
File Type: sma Get Plugin or Get Source (entity_range.sma - 918 views - 402 Bytes)
File Type: txt entity_range.txt (1.0 KB, 237 views)
__________________
joaquimandrade is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-27-2009 , 10:33   Re: Fakemeta conversions
Reply With Quote #2

It's great to see someone finally pick apart these things. The "Fakemeta high" was starting to get very annoying.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-27-2009 , 10:37   Re: Fakemeta conversions
Reply With Quote #3

I'm not surprised at all since more natives are called with fakemeta. These natives which generate also more code each time where engine does the job directly.

ok, now, time to convert all fakemeta plugin to engine.
Arkshine is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 03-27-2009 , 10:43   Re: Fakemeta conversions
Reply With Quote #4

So, coders should use the original modules(CS, Engine) instead of Fakemeta?
It might take a while to get use to that.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-27-2009 , 10:48   Re: Fakemeta conversions
Reply With Quote #5

Quote:
Originally Posted by Dores View Post
So, coders should use the original modules(CS, Engine) instead of Fakemeta?
It might take a while to get use to that.
Yes. And, talking about the cstrike module, there is also this:

Quote:
Originally Posted by Hawk552 View Post
Completely agreed. I went on a rant like this a while ago. Using FakeMeta in place of cstrike is a terrible idea. If the offsets ever change, the AMXX team will jump right on it and release a new cstrike module right away. This would require anyone using this header to update it themselves or hope that you're still around to do it. There are many, many other problems but most have already been covered in this thread.

EDIT: Here it is:
http://forums.alliedmods.net/showthread.php?p=734716

It's not directly related to the cstrike module, but many of the concepts still apply.
Not that it will certainly happen but, it is possible.
__________________

Last edited by joaquimandrade; 03-27-2009 at 10:52.
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-27-2009 , 10:48   Re: Fakemeta conversions
Reply With Quote #6

Quote:
Originally Posted by Dores View Post
So, coders should use the original modules(CS, Engine) instead of Fakemeta?
It might take a while to get use to that.
For functions which can be done with Ctrike or Engine, it would be more efficient than using Fakemeta.
Arkshine is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-27-2009 , 11:06   Re: Fakemeta conversions
Reply With Quote #7

You should do some more benchmarks and post this in the tutorials section. I'd love to see everyone back away from using Fakemeta for everything. Unfortunately, not all scripters look here.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-27-2009 , 11:07   Re: Fakemeta conversions
Reply With Quote #8

Quote:
Originally Posted by Hawk552 View Post
You should do some more benchmarks and post this in the tutorials section. I'd love to see everyone back away from using Fakemeta for everything. Unfortunately, not all scripters look here.
Ok.
__________________
joaquimandrade is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 03-27-2009 , 12:19   Re: Fakemeta conversions
Reply With Quote #9

Did someone mention engine and cstrike? I mean, isn't fakemeta the only module exists!?
Anyway... I'm so new coder that when I came here everyone was using FM and I got used to it. Like that I've never actually used engine. Ofc I've transfered some old plugins etc, but all coding still with FM. It would get little weird to start using engine bah.
SnoW is offline
Send a message via MSN to SnoW
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-28-2009 , 17:53   Re: Fakemeta conversions
Reply With Quote #10

Interesting ... Nice job testing these things out.

Question. Is it a good idea to combine them? I mean, in the past I saw a lot of people saying. You should not use both fakemeta and engine.
I think this is the problem that made the people get "Fakemeta High"
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 03-28-2009 at 18:02.
ot_207 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:25.


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