Riann Maltese
!@%$#
Join date: 20 Jul 2005
Posts: 35
|
01-26-2006 12:10
Something I've noticed as I've wandered across sims is that the timer event and lag are not dependant on each other.
I'm using a timer to trigger the closing of a listen handler like many people do. My script basically opens the listen, says something, and waits for the correct answer. If the correct answer does not happen after X seconds the timer triggers and it closes the listen handler. So basically its waiting for the correct answer or no answer.
Now what I noticed is that in a snappy sim the correct answer is given very fast, so if it says no answer the script has waits that X seconds before timing out. Ideally I'd like the X seconds to be a relatively short time.
In a laggy sim it may take ages before the correct answer is given so I do not want to close the listener too soon. So the X seconds might not be good enough.
So what do I do? I currently have the X seconds set to 15 seconds before time out, but I'd like to tailor that X seconds reflecting the sim lag. So in a snappy sim it doesn't have to wait so long, but in a laggy sim it will wait for a longer time. Any ideas?
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
01-26-2006 14:26
Try using something like llGetRegionTimeDilation or llGetRegionFPS to adjust your timer. ==Chris
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
01-26-2006 23:17
How about just closing the listen as soon as a command is heard? And keep the timer at like 15-30 seconds to provide enough time for someone to actually give an answer.
Additionally...timers lag in laggy sims.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
Riann Maltese
!@%$#
Join date: 20 Jul 2005
Posts: 35
|
01-27-2006 10:33
Well I just set a flat 5 second timer for it. I ran around SL yesterday testing the response time in the laggiest of sims only gave a 1.7 second response. So I concluded I shouldnt bother with doing this for normal conditions, and if its drastic conditions nothing will work anyways.
|