Jump to content

Question about script memory usage.


MeshPromo
 Share

You are about to reply to a thread that has been inactive for 1669 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

After delete a texture animation script made using LlSetTextureAnim, we can still see the animation.

1. Will it still use the same server resources as before delete the script?

2. If it still use the same resources, what are the reasons to delete that script?

Link to comment
Share on other sites

Texture animation is a prim property.  It can only be started or stopped with a script, but it does not require a script to continue running.  Therefore, you can delete the script once it has started the animation.  There's not really much benefit to doing that, but it appeals to some people's sense of tidiness.

  • Thanks 1
Link to comment
Share on other sites

  • Lindens
On 9/27/2019 at 3:45 PM, Rolig Loon said:

Texture animation is a prim property.  It can only be started or stopped with a script, but it does not require a script to continue running.  Therefore, you can delete the script once it has started the animation.  There's not really much benefit to doing that, but it appeals to some people's sense of tidiness.

If the script's sole purpose was to start an animation on a prim there is benefit to deleting the script once it has done that.  Even scripts that contain no events currently consume some resources on the server and must be checked every frame to ensure that they do not have any events pending.

  • Thanks 2
Link to comment
Share on other sites

1 minute ago, Rider Linden said:

If the script's sole purpose was to start an animation on a prim there is benefit to deleting the script once it has done that.  Even scripts that contain no events currently consume some resources on the server and must be checked every frame to ensure that they do not have any events pending.

True. The question really is whether there is "much benefit" to deleting the script, and that comes down to assessing how much script time is being charged against the total frame time by this one little script. Every little bit counts, of course, but unless the region is really running tight on server resources, the extra load of this one little script is trivial. Therefore, I do agree that it's tidier to get rid of the script, but I don't usually bother, personally,

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1669 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...