LlGetRegionFPS/fr

From Second Life Wiki
< LlGetRegionFPS
Revision as of 14:28, 19 March 2008 by Gally Young (talk | contribs) (Localized to french)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Fonction: float llGetRegionFPS( );

Renvoie un float correspondant au nombre d’images par seconde de la région (FPS = Frame per seconds).


Avertissements

  • Le nombre d’images par secondes ne peut actuellement dépasser 45 images/secondes, la fonction ne renvoie donc jamais une valeur supérieure à 45.0

Exemples

<lsl> // Début d’un script d’information sur une région. string region; string sim;

default {

   state_entry()
   {
       llSetTimerEvent(1.0);
   }
   timer()
   {
       string here = llGetRegionName();
       if(region != here)
       {
           sim = llGetSimulatorHostname();
           region = here;
       }
       llSetText(
               " NOM REGION : " + region + 
             "\n NOM SIM: " + sim + 
             "\n DILATATION TEMPORELLE : " + (string)llGetRegionTimeDilation() +
             "\n FPS REGION  : " + (string)llGetRegionFPS(),
           <0,1,0>, 1.0};
   }

} </lsl>

Voir également

Fonctions

•  llGetSimulatorHostname Renvoie le nom du serveur
•  llGetRegionTimeDilation Renvoie la dilatation temporelle
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.