Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script Perf ?

Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
10-25-2005 03:30
From: http://secondlife.com/tiki/tiki-index.php?page=How+do+I+read+the+sim+performance+stats%3F

Script Perf - Number of LSL opcodes being executed a second by the simulator. Note that this is the number of ACTUAL instructions executed in the last second, not the theoretical maximum opcodes/second. If your simulator is not running very many scripts, this number will be low even if performance is good.


Does this mean if all my scripts are purely event-triggered and nobody is actually using them the number will be zero?
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-25-2005 03:49
Theoretically, yes :o
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
10-25-2005 03:52
I was hoping for some actual benchmarks though ;)
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-25-2005 04:05
do you want fries with that ? :D

I'm at work now and can't benchmark anything other than [hmm, I'm not supposed to mention what I work on. Let alone post here from work :eep: ].
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
10-28-2005 00:11
From: Jesrad Seraph
do you want fries with that ? :D

I'm at work now and can't benchmark anything other than [hmm, I'm not supposed to mention what I work on. Let alone post here from work :eep: ].

Yes please. And one of those little bags of ketchup... btw... ker-BUMP :D
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-28-2005 02:31
Observed in my sim:
~8000 ips as "base" script usage.
Frame time: ~7.2 ms

Adding a space cruiser:
~8100 ips
Frame time: ~7.3ms
(running a timer loop somewhere in a single script)

Moving the space cruiser (multimove2, the smooth movement means vector algebra and calling those llSetPos every 0.15 second for each of the 17 objects):
~17000 ips
Frame time: ~9.8ms

These numbers ARE flaky, straight out of my faulty memory. Don't use them for anything serious ;)

[Edit]
Since Sensual Casanova decided to bring back the Blingo Boards (hurray for alliterations ! And hurray for Blingo, it's about damn time !), I've noticed the game is snappier than ever before. For example it can drop multiple columns of gems down after a scoring move in a blink, instead of taking up to 5 seconds in v1.6. I must say such performance is truely shocking me :o
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
10-28-2005 03:42
Thank you Jesrad :)
I need to steal my gf's laptop so i can get back into SL :\
Anyone else care to talk about their experiences with the new scheduler?
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
10-29-2005 03:29
OK, the script perf is not the only metric - in time there is a script time function too, which is way less jerky than the script perf.

Io, yesterday was running at around 60kips and 18ms script time perfectly happily. (TD=0.99/1.00, sim FPS solid at 45)

I'd suggest that this is close to the maximum - anyone entering Io then hit sim performance a hell of a lot, at one point two people logged in, into Io and the numbers went berserk, at one point for a while we had TD=0, simFPS=0 for 3 seconds or so.

Interestingly the script time allocation stayed still more or less (small fluctuations), whilst the image time metric above it went from 0.4ms or so to 10+ms. Not quite what I expected (I thought the new sim design was that the sim would lock to 45FPS if possible and reduce script time to fit that, 45fps =22.2ms frame time of course) actually it appeared the script time stayed solid and the hit of loading the textures overwhelmed the sims performance.

To add to this thought I went shopping. The sim had hardly any scripts (500 I think from memory) and suitably low script perf and script time numbers. It was still slow though - the image loading issues striking again I'm suspecting, shops obviously having quite a lot of textures in them. I was getting about 30 sim FPS there.

Now metrics about how much of a hit each function is won't come out of that (anyone got an empty island we can try it out on please?) but it's a bit more grist to the mill.