Ok, so I'm trying to use texture animation to keep load off the server and improve performance - but I still can't figure out how to synchronise this across multiple objects/prims.
There appears to be no way of telling more than one prim (even in the same linked object) to start animating at the same time...llSetLinkPrimitiveParams(...) can't be used to start animation, and there's no llSetLinkTextureAnim(...) function.
Though to be honest even if there were it wouldn't really help because I need to send slightly different parameters to each group of prims.
Any sort of trick that involves broadcasting messages via llSay(...) or llMessageLinked(...) simply doesn't work - even though when I print out the llGetTimeOfDay() that each prim thinks they're starting the animation at, they all report that they're starting within 0.01 seconds of each other, which should be good enough, but the result is just a mess.
As it happens I can (depending on the sim load) get reasonable performance with what I'm trying to do now (create a light show) using timers etc., but again it's unnecessary for the logic to happen on the server, and on heavily loaded sims it turns into a mess.
Is there really no way at all of ensuring that changes to multiple objects or prims are properly synchronised? I'm just playing around with scripting (only been signed up a week), and it was the first thing I wanted to be able to do! I can't be the only one...