Raised This Month: $202 Target: $400
 50% 

Natives CPU?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cristian505
Member
Join Date: Oct 2020
Location: Romania
Old 09-10-2021 , 11:07   Natives CPU?
Reply With Quote #1

Hello! I want to see how much cpu each native consumes from each module in AMX Mod X. Like the difference between engfunc(EngFunc_PrecacheModel, "name"); and precache_model("name);
Cristian505 is online now
Cristian505
Member
Join Date: Oct 2020
Location: Romania
Old 09-10-2021 , 17:10   Re: Natives CPU?
Reply With Quote #2

Nvm, just look at this...

n | precache_model | 3 | 0.000031 / 0.000006 / 0.000019
n | engfunc | 3 | 0.074020 / 0.013533 / 0.036971
Cristian505 is online now
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-11-2021 , 05:53   Re: Natives CPU?
Reply With Quote #3

Quote:
Originally Posted by Cristian505 View Post
Nvm, just look at this...

n | precache_model | 3 | 0.000031 / 0.000006 / 0.000019
n | engfunc | 3 | 0.074020 / 0.013533 / 0.036971
Without context, these are just random numbers. What does each column represent? Is the data in seconds? ms? ns? How did you acquire the data?
__________________

Last edited by HamletEagle; 09-11-2021 at 05:55.
HamletEagle is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-11-2021 , 11:26   Re: Natives CPU?
Reply With Quote #4

Why, are you calling it every frame where it may matter? Or are you running your server on a calculator's CPU? I'd just follow best practices when scripting and not worry about it.
__________________
Bugsy 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:44.


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