NFS Scriptload Data

Forum for the CDS Artisan Guild


Moderator: SC Moderators

Post Reply
User avatar
Tanoujin Milestone
I need a hobby
I need a hobby
Posts: 538
Joined: Thu Jul 26, 2007 5:42 pm

NFS Scriptload Data

Post by Tanoujin Milestone »

Snapshot_1 NFS 2007_10_18 12 am - 2 pm
898 Scripts - 10.2 ms (low)
__________________

215*(0.004) = 0.860 ms
244*(0.005) = 1.220 ms
29*(0.006) = 0.174 ms
10*(0.007) = 0.070 ms
29*(0.008) = 0.232 ms
89*(0.009) = 0.801 ms
34*(0.010) = 0.340 ms

Snippet 1: 0.004-0.010 ms
total: 650 Scripts, load 3.697 ms
__________________

9*(0.011) = 0.099 ms
5*(0.012) = 0.060 ms
18*(0.013) = 0.234 ms
17*(0.014) = 0.238 ms
8*(0.015) = 0.120 ms
6*(0.016) = 0.096 ms
11*(0.017) = 0.187 ms
34*(0.018) = 0.612 ms
16*(0.019) = 0.304 ms
6*(0.020) = 0.120 ms

Snippet 2: 0.011-0.020 ms
total: 130 Scripts, load 2.070 ms
__________________

15*(0.021) = 0.315 ms
10*(0.022) = 0.220 ms
5*(0.023) = 0.115 ms
1*(0.024) = 0.024 ms
4*(0.025) = 0.100 ms
7*(0.026) = 0.182 ms
6*(0.027) = 0.162 ms
7*(0.028) = 0.196 ms
3*(0.029) = 0.087 ms
3*(0.030) = 0.090 ms

Snippet 3: 0.021-0.030 ms
total: 61 Scripts, load 1.491 ms
__________________

2*(0.031) = 0.062 ms
6*(0.032) = 0.192 ms
1*(0.034) = 0.034 ms
3*(0.035) = 0.105 ms
2*(0.036) = 0.072 ms
1*(0.037) = 0.037 ms
1*(0.039) = 0.039 ms

Snippet 4: 0.031-0.040 ms
total: 16 Scripts, load 0.541 ms
__________________

2*(0.041) = 0.082 ms
2*(0.045) = 0.090 ms
1*(0.046) = 0.046 ms
1*(0.047) = 0.047 ms
3*(0.048) = 0.144 ms
1*(0.049) = 0.049 ms
2*(0.050) = 0.100 ms

Snippet 5: 0.041-0.050 ms
total: 12 Scripts, load 0.558 ms
__________________

1*(0.051) = 0.051 ms
1*(0.052) = 0.052 ms
2*(0.053) = 0.106 ms
1*(0.054) = 0.054 ms
1*(0.058) = 0.058 ms
2*(0.060) = 0.120 ms

Snippet 6: 0.051-0.060 ms
total: 8 Scripts, load 0.441 ms
__________________

0.065 ms
0.067 ms
0.068 ms
0.075 ms
0.092 ms
0.094 ms
0.098 ms
0.099 ms

Snippet 7: 0.061-0.100 ms
total: 8 Scripts, load 0.658 ms
__________________

0.102 ms
0.131 ms
0.155 ms
0.165 ms
0.196 ms
0.210 ms
0.232 ms

Snippet 8: > 0.100 ms
total: 7 Scripts, load 1.191 ms
__________________
Control: 892 Scripts (6 missing), load 10.647 (went up)
__________________
__________________

Comment: took too long, next time debug window screenshots. If anyone wants to know about her/his scripts, call me. To look at a single owner's scripts and hand out a screenshot takes 5 minutes.
Sleazy, where do you get the number of 2,100 active scripts from?

The ban of continuosly listening scripts points in the right direction, because it refers to the script characteristic. There may be scripts that cause horrible spikes when they are triggered. Otoh, your well written script could loop all the time, if it would not take more than your share of the load *shrug

We need enough overhead space for events and meetings - mind, the load goes up to about 20 without visible reason... too many variables here... btw in that case the small scripts go up 1-2 microseconds at max, the low end 780 scripts would add about 2 ms, now tell me what causes the missing 8 ms? We need a snapshot at 20 as well...

I think it is the same as if you would run 900 little applications on your PC, as long as they are not called, they eat a little RAM, just waiting. We may need 2 dimensions to look at the scripts: the constant load and the usage spikes. The first one is visible in a calm hour like this, the second needs individual tests, and as long as nobody is interested in tests, we can switch off the top scripts and send a notice to the owner in case of trouble.

The AM covenant could adress the spikes: you have to stay within your limit, if you are not sure, you ask for a test. Constant load can be handeled with weight classes.

I should have added examples for each snippet, may be next time... some scripts like Moon's and Diannes doors are widespread, we could have a list of common scripts, my problem is, why should the 70% oneliners taking 35% of the resources be restricted first, but interpret the numbers yourself... and tell me wether the debug window is relyable at all.

Be kind, for everyone you meet is fighting a hard battle.
Ian Maclaren
User avatar
Sleazy_Writer
Master Word Wielder
Master Word Wielder
Posts: 429
Joined: Wed Dec 06, 2006 6:38 am

Re: NFS Scriptload Data

Post by Sleazy_Writer »

Tanoujin wrote:

Sleazy, where do you get the number of 2,100 active scripts from?

I get that from the CTRL-SHIFT-1 view (menu View --> Statistics Bar),
it has a value Active Scripts, and right now it shows almost 2900 for CN, and 2400 for NFS.

Strange.

Very interesting statistics, thanks!

User avatar
Tanoujin Milestone
I need a hobby
I need a hobby
Posts: 538
Joined: Thu Jul 26, 2007 5:42 pm

Re: NFS Scriptload Data

Post by Tanoujin Milestone »

ah, ty, checking that

Be kind, for everyone you meet is fighting a hard battle.
Ian Maclaren
Dnate Mars
Veteran debater
Veteran debater
Posts: 285
Joined: Fri May 26, 2006 9:32 am

Re: NFS Scriptload Data

Post by Dnate Mars »

What you have listed there are the top scripts. Everything else not listed is below that minimum mark.

Does anyone know for sure what class sim NFS is? If it is a class 4, I wonder if when it is upgraded it will make a really big difference?

User avatar
Tanoujin Milestone
I need a hobby
I need a hobby
Posts: 538
Joined: Thu Jul 26, 2007 5:42 pm

Re: NFS Scriptload Data

Post by Tanoujin Milestone »

Ah, confusing!
1. I made a mistake: the 10.9 ms (changing slow) is from the top scripts, the about 18.5 ms (oscillating ±1) from the statistics bar. The 25 ms max recommendation refers to the statistics bar.

2. right, Sleazy, Statistics shows 2446 active scripts for NFS, and it counts an added scripted object and substracts it when deleted or disabled. Top scripts shows 906. So there are 1540 scripts "somewhere".

3. Dnate, I can not write a script below 4 ms. Running around with script beacons on and trying to find a script below 0.004 ms:
Default script: 0.004. Sign teaching at school: 0.009. Posing Stand 0.005. Website access 0.005. Monster Globe 0.005. Seat with sit target 0.005. Street lamp by Sudane 0.008. So, and this is my switched off target seat: beaconed, but in neither list (as expected).

As far as I see all running scripts are in the Top list. Show me a running script below 0.004 ms. And btw: If there is 1 script per 100 sqm allowed and i see an average of 1.4 scripts per 100 sqm (according to the Top list), this seems to be true. If there were 3.7 scripts per 100 sqm (according to Statistics bar) i would suggest we abolish a rule that never applied

Would be interesting what a brand new empty sim shows as active scripts in the statistics bar! Cant wait :) If there is a floor of 1540 scripts we know the Top Script window is named by usage, not by content.

Edit 21th of Oct:
CN shows 2978 active scripts in statistic bar, script time around 17 ms with spikes up to 50
Top scripts: number 1000, total 12 ms, smallest 0.002 ms
ok, great, 1978 scripts "somewhere"
Trying to make a script below 0.002: default script (Hello Avatar) takes 0.003

me scratches head - is it me, or is this weird? Anyone able to enlighten me?

Be kind, for everyone you meet is fighting a hard battle.
Ian Maclaren
Post Reply

Return to “CDS Artisan Guild”