Raised This Month: $ Target: $400
 0% 

Benchmarking : register_think, register_touch VS register_forward(FM_Think/FM_Touch)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-24-2007 , 11:14   Benchmarking : register_think, register_touch VS register_forward(FM_Think/FM_Touch)
Reply With Quote #1

Dears Friends.

I have a question about run time efficiency with engine methods and fakemeta methods.

With engine, it's possible to register an entity think or touch by inputing the ClassName as a filter, and trig easily a delegate function. Ok.

With Fakemeta, registering purpose that we must catch ourself the class name by doing theses features :

=> Allocating predefined string variable, dedicated to read the class name with pev function.

=> When it's done, we must compare collected value with classname we want to compare, with equali...

=> ... and calling function used when the name is matched.

I'm afraid that adding a lot of classname comparaison will take more cpu time than the engine methods. Isn't it ?

I think this is a good investigation no ? What do you think about this ?

Yes I LOVE FAKEMETA and i want no longer use engine methods, but for theses cases, engine is always more efficiency ?

"Voily voilou" ;o)
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 09-24-2007 , 13:34   Re: Benchmarking : register_think, register_touch VS register_forward(FM_Think/FM_Tou
Reply With Quote #2

Actually,the only difference is that engine compares the names itself,with fakemeta you can choose what to do,filter by entity id,etc.And remember to use statics to help performance a bit.
danielkza is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-24-2007 , 17:53   Re: Benchmarking : register_think, register_touch VS register_forward(FM_Think/FM_Tou
Reply With Quote #3

I would reckon that if you look at the engine module's source code it's doing roughly the same thing.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Reply


Thread Tools
Display Modes

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 16:07.


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