<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hg+Beeks</id>
	<title>Second Life Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hg+Beeks"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/wiki/Special:Contributions/Hg_Beeks"/>
	<updated>2026-07-25T18:28:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Talk:LlSleep&amp;diff=1201513</id>
		<title>Talk:LlSleep</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Talk:LlSleep&amp;diff=1201513"/>
		<updated>2016-07-10T10:57:34Z</updated>

		<summary type="html">&lt;p&gt;Hg Beeks: Formatting appeared to be old and using HTML markdown - updated to properly parse code sections.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Use of small values with llSleep() ==&lt;br /&gt;
I believe these 2 script shows that a small value (as in less than 0.0222... (1/45)) sent to llSleep() causes the script to sleep out the rest of the server frame it&#039;s then active within, always causing a minimal delay of approximately 0.022s. They also show that llSleep(0.0); is a NOP.&lt;br /&gt;
&lt;br /&gt;
To show this, I&#039;m using a technique to see what gets en-queued during the detach event. Both scripts announce when their attach event handler is triggered. The &amp;quot;Sub&amp;quot; script, when it detects a detach event message, also sends a link message to &amp;quot;Main&amp;quot; which then announces when it&#039;s been received.&lt;br /&gt;
With either no llSleep() or with llSleep(0.0) in the indicated spot within &amp;quot;Sub&amp;quot;, nothing is queued through the detachment. However, use of a small value will cause the response of the link message to delay until it&#039;s reattached again.&lt;br /&gt;
&lt;br /&gt;
To use, place both scripts within one prim, attach and detach enough times to note the chat messages and when they occur. Uncomment either of the llSleep() statements in &amp;quot;Sub&amp;quot; to observe the differences.&lt;br /&gt;
    // Main&lt;br /&gt;
    default{&lt;br /&gt;
        link_message(integer sender_num, integer num, string msg, key id){&lt;br /&gt;
            llOwnerSay(msg);&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        attach(key id){&lt;br /&gt;
            if (id == NULL_KEY)&lt;br /&gt;
                llOwnerSay(&amp;quot;Main detached.&amp;quot;);&lt;br /&gt;
            else &lt;br /&gt;
                llOwnerSay(&amp;quot;Main attached.&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    // Sub&lt;br /&gt;
    default{&lt;br /&gt;
        attach(key id){&lt;br /&gt;
            if (id == NULL_KEY){&lt;br /&gt;
                llOwnerSay(&amp;quot;Sub detached.&amp;quot;);&lt;br /&gt;
            &lt;br /&gt;
                // Uncommenting next line will not change the observed behavior&lt;br /&gt;
                // llSleep(0.0);&lt;br /&gt;
            &lt;br /&gt;
                // Uncommenting next line will cause this script to sleep until the end of the server frame&lt;br /&gt;
                // llSleep(0.0001);&lt;br /&gt;
            &lt;br /&gt;
                llMessageLinked(0, 0, &amp;quot;DETACHED&amp;quot;, NULL_KEY);&lt;br /&gt;
            } else&lt;br /&gt;
                llOwnerSay(&amp;quot;Sub attached.&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
: [[User:LepreKhaun Resident|LepreKhaun Resident]] 19:23, 13 January 2014 (PST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Try this:-&lt;br /&gt;
&lt;br /&gt;
    default&lt;br /&gt;
    {&lt;br /&gt;
        touch_start(integer total_number)&lt;br /&gt;
        {&lt;br /&gt;
            llResetTime();&lt;br /&gt;
            llSleep(0.0001);      // Try also with 0.0&lt;br /&gt;
            llSay(0, (string) llGetTime() );&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
I got values as low as 0.01825, mostly around 0.021, and once 0.044 (2 frames) from a sleep of 0.0001&lt;br /&gt;
&lt;br /&gt;
but consistently 0.00000 from a sleep of 0.0&lt;br /&gt;
&lt;br /&gt;
: [[User:Omei Qunhua|Omei Qunhua]] 03:28, 14 January 2014 (PST)&lt;br /&gt;
&lt;br /&gt;
Mo&#039; bettah, fo&#039; sure. LOL I&#039;d made the observation while tinkering with synchronicity in multiple scripts and never thought to simplify. I guess the question would be does it warrant mention on the front page and, if so, would it fall under Caveats?&lt;br /&gt;
: [[User:LepreKhaun Resident|LepreKhaun Resident]] 07:26, 14 January 2014 (PST)&lt;br /&gt;
&lt;br /&gt;
IMHO it would be great to have this with the scripts on the llSleep page.  Wouldn&#039;t it fit under deep notes?&lt;br /&gt;
&lt;br /&gt;
: {{SL-Profile|Poppet McGimsie}} 	 17:10, 17 February 2014 (PST)&lt;/div&gt;</summary>
		<author><name>Hg Beeks</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Talk:LlRequestURL&amp;diff=454853</id>
		<title>Talk:LlRequestURL</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Talk:LlRequestURL&amp;diff=454853"/>
		<updated>2009-08-10T09:41:47Z</updated>

		<summary type="html">&lt;p&gt;Hg Beeks: Created page with &amp;#039;One thing I couldn&amp;#039;t help but notice - The URL generates a UUID as a specific URL, but from what I can tell, it&amp;#039;s not a correctly formatted one - The version digit is just as ran...&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;One thing I couldn&#039;t help but notice - The URL generates a UUID as a specific URL, but from what I can tell, it&#039;s not a correctly formatted one - The version digit is just as random as the others. Not really an issue, but I do find it odd that they didn&#039;t even use version 4, as they did with inworld IDs.&lt;br /&gt;
&lt;br /&gt;
[[User:Hg Beeks|Hg Beeks]] 09:41, 10 August 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Hg Beeks</name></author>
	</entry>
</feed>