Raised This Month: $7 Target: $400
 1% 

[TUT] Modules and efficient scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-01-2009 , 12:47   Re: [TUT] Modules and efficient scripting
Reply With Quote #111

Quote:
Originally Posted by ConnorMcLeod View Post
Engine module won't be auto-loaded by a public function (forward).
I was only commenting on:
Quote:
Though I would think it would say something like the function is not used in the compiler output
Most likely the module is being loaded by another plugin.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-01-2009 , 16:37   Re: [TUT] Modules and efficient scripting
Reply With Quote #112

My post was for bad bud
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
epic .
Senior Member
Join Date: Oct 2009
Location: China
Old 04-25-2010 , 22:03   Re: [TUT] Modules and efficient scripting
Reply With Quote #113

This is a very good TUT
__________________
Quote:
Destinies in my AWP sight are all alike;
Destinies out of my AWP sight in its own way.
epic . is offline
Send a message via ICQ to epic .
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-28-2012 , 18:42   Re: [TUT] Modules and efficient scripting
Reply With Quote #114

Sticked, even if it is indexed in arkshine sticked thread, i think it is usefull to have it under our eyes !!
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 07-29-2012 , 15:37   Re: [TUT] Modules and efficient scripting
Reply With Quote #115

I have some confuse about Engine vs Fakemeta on playing with origins on custom entity.

Here is the test code:
Spoiler


here is the profile test: (test during ~30 seconds)
Spoiler


not sure if test code is the best, but seem the fakemeta natives is a little fast that engine, like on natives:
pev_valid - is_valid_ent
EngFunc_SetOrigin - entity_set_origin

not sure if i have right, so wait to anybody clarify this confuse for me. What is best variant to use origins (get/set) on custom entity (who call very fast), engine or fakemeta ?
dFF is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-29-2012 , 15:47   Re: [TUT] Modules and efficient scripting
Reply With Quote #116

Don't trust too much the profiler...

Engine is slightly faster because it generally contains less code. But in your example, even if engine is should be faster, you won't see any significant change and you should not bother about performance here, therefore you should use the way you prefer.
__________________

Last edited by Arkshine; 07-29-2012 at 15:48.
Arkshine is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 07-29-2012 , 16:00   Re: [TUT] Modules and efficient scripting
Reply With Quote #117

Ok, thank you for reply. Also if anybody still have minor confusion can see the natives source.
Spoiler


Spoiler
dFF is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-29-2012 , 16:41   Re: [TUT] Modules and efficient scripting
Reply With Quote #118

The main thing is to not use 3 natives with FM when another module native can do the same.
But when 2 natives from different modules do the same thing, it doesn't really matter.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
codeplus
New Member
Join Date: Aug 2012
Old 09-02-2012 , 02:40   Re: [TUT] Modules and efficient scripting
Reply With Quote #119

hey Thanks
__________________
codeplus is offline
Old 09-19-2012, 07:53
weuwosmith
This message has been deleted by YamiKaitou. Reason: spambot
greenac
BANNED
Join Date: Nov 2020
Old 11-14-2020 , 03:33   Re: [TUT] Modules and efficient scripting
Reply With Quote #120

tasks are not suitable for profiling it seems
greenac is offline
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 03:51.


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