This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[TUT] Modules and efficient scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 15:54   Re: [TUT] Modules and efficient scripting
Reply With Quote #1

About set_pev/entity_set the results say that it is basically the same thing.

(The same for pev/entity_get)
Attached Files
File Type: txt Eng_vs_Fm.txt (950 Bytes, 595 views)
File Type: sma Get Plugin or Get Source (Eng_Vs_Fm.sma - 1343 views - 525 Bytes)
__________________

Last edited by joaquimandrade; 03-29-2009 at 15:58.
joaquimandrade is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-29-2009 , 15:56   Re: [TUT] Modules and efficient scripting
Reply With Quote #2

Quote:
Originally Posted by joaquimandrade View Post
About set_pev/entity_set the results say that it is basically the same thing.
Ok then Emp` is right!
Quote:
Originally Posted by Emp` View Post
I think there will need to be more testing on the actual fakemeta natives vs the engine natives. As for now the only argument has been fakemeta conversions (stocks that emulate the engine natives), but http://forums.alliedmods.net/showthread.php?t=65427 just puts it to fakemeta, there is not any fakemeta conversions so you can't completely say that fakemeta is slower in that situation.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 15:59   Re: [TUT] Modules and efficient scripting
Reply With Quote #3

Quote:
Originally Posted by ot_207 View Post
Ok then Emp` is right!
He's right about what? Using fakemeta is never faster, even not being engine always clearly faster.

Basically:

All this years everybody (Except Hawk) thought that fakemeta way was faster. Fakemeta way is never faster and can be much slower.
__________________

Last edited by joaquimandrade; 03-29-2009 at 16:23.
joaquimandrade is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-29-2009 , 16:03   Re: [TUT] Modules and efficient scripting
Reply With Quote #4

Quote:
Originally Posted by joaquimandrade View Post
His right about what? Using fakemeta is never faster, even not being engine always clearly faster.
He said about natives functions like pev,set_pev,create_tr2,get_pdata_int are the same. He told us that stocks that emulate functions of engine use a lot of cpu. For example fakemeta util stocks use too much cpu usage if some of those stocks can be found in other modules than it is important to use those modules instead of the stocks.
Example:
Insead of fm_set_rendering it is best to use set_rendering from fun.

Anyway the test shows a slight difference.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2009 , 16:04   Re: [TUT] Modules and efficient scripting
Reply With Quote #5

Quote:
Originally Posted by ot_207 View Post
He said about natives functions like pev,set_pev,create_tr2,get_pdata_int are the same. He told us that stocks that emulate functions of engine use a lot of cpu. For example fakemeta util stocks use too much cpu usage if some of those stocks can be found in other modules than it is important to use those modules instead of the stocks.
Example:
Insead of fm_set_rendering it is best to use set_rendering from fun.

Anyway the test shows a slight difference.
No. He just said that more tests should be made. Here they are and fakemeta is never faster.
__________________
joaquimandrade is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-29-2009 , 16:07   Re: [TUT] Modules and efficient scripting
Reply With Quote #6

Quote:
Originally Posted by joaquimandrade View Post
No. He just said that more tests should be made. Here they are and fakemeta is never faster.
Oh, didn't read right.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
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 01:34.


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