AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   Natives CPU? (https://forums.alliedmods.net/showthread.php?t=334258)

Cristian505 09-10-2021 11:07

Natives CPU?
 
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); :crab::oops:

Cristian505 09-10-2021 17:10

Re: Natives CPU?
 
Nvm, just look at this...

n | precache_model | 3 | 0.000031 / 0.000006 / 0.000019
n | engfunc | 3 | 0.074020 / 0.013533 / 0.036971

HamletEagle 09-11-2021 05:53

Re: Natives CPU?
 
Quote:

Originally Posted by Cristian505 (Post 2757431)
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?

Bugsy 09-11-2021 11:26

Re: Natives CPU?
 
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.


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

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