User:Toy Wylie/RLV Documentation/getdebug renderresolutiondivisor

From Second Life Wiki
< User:Toy Wylie‎ | RLV Documentation
Revision as of 06:00, 14 July 2010 by Toy Wylie (talk | contribs) (first draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


@getdebug renderresolutiondivisor

Type

General

Implemented

Implemented since RLV version 1.16

Usage

@getdebug_renderresolutiondivisor=<channel>

Purpose

This commands the user's viewer to answer with the value stored in the "RenderResolutionDivisor" debug setting. This value controls the resolution - ur blurriness - of the user's screen. A value of 1 means, the screen blur is switched off, any higher number increases the blurriness. To set this value the RLV command @setdebug_renderresolutiondivisor can be used. RLV devices can read this value and restore it later after changing it for their own purposes.


Example

<lsl>integer channel=12345;

default {

   state_entry()
   {
       llOwnerSay("Touch me to verify your screen's blurriness.");
       llListen(channel,"",llGetOwner(),"");
   }
   touch_start(integer total_number)
   {
       if(llGetOwner()==llDetectedKey(0))
           llOwnerSay("@getdebug_renderresolutiondivisor="+(string) channel);
   }
   
   listen(integer channel, string name, key id, string message)
   {
       llOwnerSay("Your screen blurriness is currently: "+message);
   }

}

</lsl>