|
Bisham Ren
Registered User
Join date: 1 Jul 2006
Posts: 19
|
04-09-2007 01:57
I want to call the timer() event at least twenty times per second in order to change a prim "smoothly", but I'm concerned that setting llSetTimerEvent(0.05) or even faster is going to create unnecessary lag. There will be several of these scripts running in a public area.
How demanding is this sort of thing to the system as a whole? Can I safely do it?
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
04-09-2007 02:08
From: Bisham Ren I want to call the timer() event at least twenty times per second in order to change a prim "smoothly", but I'm concerned that setting llSetTimerEvent(0.05) or even faster is going to create unnecessary lag. There will be several of these scripts running in a public area.
How demanding is this sort of thing to the system as a whole? Can I safely do it? Thats a bit excessive. How are you actually changing the prim? Unless you are using a battery of linked scripts each call to llSetPrimitiveParams or llSetPos llSetRot etc delays the script by 0.2 sec.
|
|
Bisham Ren
Registered User
Join date: 1 Jul 2006
Posts: 19
|
04-09-2007 02:20
From: Newgate Ludd Thats a bit excessive. How are you actually changing the prim? Unless you are using a battery of linked scripts each call to llSetPrimitiveParams or llSetPos llSetRot etc delays the script by 0.2 sec. I am going to change its color with llSetColor which apparently has no delay.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
04-09-2007 02:45
From: Bisham Ren I am going to change its color with llSetColor which apparently has no delay. You are correct it has no delay although it will cause a changed event and a force a redraw of the object. I assume you are trying for a graduated change from colour x to colour y over a short period? You may find it easier/better to use a texture animation for the same effect.
|