Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Time delay question

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
06-20-2006 07:39
I have a project that will have two ways to achieve an action. One using a HUd which will use chat and the other a menu that will use linked messages. What I want to know is if there will be a significant difference in performance between the two. First, would there be difference in the time a script would receive a message sent through chat versus one by a linked message? If so how much? Second, if the Hud chat message was sent to the Menu script that then sent a linked message to a thirt script, how much time would that add to the process?
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
06-20-2006 10:26
From: Mod Faulkner
What I want to know is if there will be a significant difference in performance between the two.
Probably not what most people would consider "significant", no.
From: someone
First, would there be difference in the time a script would receive a message sent through chat versus one by a linked message? If so how much?
Yes, chat would be slower, but it isn't possible to guarantee a time on that. For most purposes, the time is effectively the same.
From: someone
Second, if the Hud chat message was sent to the Menu script that then sent a linked message to a thirt script, how much time would that add to the process?
Not much.

From a UI perspective, llDialog is going to be more reliable than an interface you build yourself, in the sense that clicking on buttons generated by SL's UI is more absolute. Still, I wouldn't expect problems to come up in either case.

You do have to watch out for the event queue though. What is your script otherwise doing? Is it possible that it could queue up a bunch of events and miss chat or linkmessages?
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
06-20-2006 10:38
I'm pretty muchw ith Cat here, I would use the chat though. Just the fact that you need those ressource sucking listens.

Also, link_message and chat do queue up. Last I heard it was up to about 100 requests before they started dropping some.
_____________________
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
Thanks
06-20-2006 11:15
Thanks for the info. The two message senders are few events, usually only a couple per message.