2 Jul 2006

reloop lag testing

Filed under: Scripting, Primpop Stuff — Stella Trenchmouth @ 7:22 pm

Happy about this one - i was recently given estate manager access to Suffugium, and have pretty much been only playing with the top script usage tools as yet. It’s some pretty neat insight into how nasty some scriptys can get (and should be available to any & all parcel owners on the mainland - miserable old Eldora with it’s 2000+ scripts running constantly, it’d be at least interesting to see why things are so pokey).

So, Reloop being the fearsomely laggy beast that it is, i decided to run some tests. Here’s the average of 10 separate “normal use” runs (via SL 1.10.5(1), and using the big version with speakers containing around 30-40 scripts):

reloop v1.2.6 sim CPU script usage
—————————————–
1) machine rezzed, idle: 0.3-0.4ms
2) cartridge loading (scan/verify): 2-4ms
3) cartridge loading (sample loading): 0.3-0.5ms
4) playback: 0.3-0.4ms
5) playback with active fade in/out: 0.4-1.0ms (~1.0ms with 12 samples fading at once)
6) power off after playback: 0.3-0.4ms

For reference, a completely empty script takes about 0.07ms (i believe, forgot to write that down), most idle vendor scripts run about 0.09ms. I think Suffugium normally goes between 9-15ms of total script time (accounting for the drones & automated cars, holoball, avatars, etc), at any given moment.

What all that means: it’s not half as bad as i thought! The cartridge scanner is a bit laggy, but considering what all it has to do (scan for the cartridge, check all the samples & proper permissions once found, etc), it’s not so bad, and goes away quick once a cartridge is found & loadable.

The biggest script lag comes from fade in/out, which i expected - it’s a logarithmic fade, all looping math, so it’ll suck down all the resources it can when triggered. Even then, it’s pretty tolerable. Fading 12 samples at once in a packed sim would probably be a bad idea, though.

Of course, the real lag comes from the sounds - the sim has to grab the sound files & push them to every avatar standing in range. Not much that can be done about that still.

Anyway. Thought that’d be info worth sharing with other Reloop owners. I’m pretty surprised by the results, and may be smirking a bit.


music is better