LlGetRegionFPS/fr
From Second Life Wiki
| Portail LSL | | | Fonctions | | | Évènements | | | Types | | | Constantes | | | Contrôle d'exécution | | | Bibliothèque de scripts | | | Tutoriels |
Description
Fonction: float llGetRegionFPS( );| 228 | N° de fonction |
| 0.0 | Délai |
| 10.0 | Energie |
Renvoie un correspondant au nombre d’images par seconde de la région (FPS = Frame per seconds).
Inconvénients
- 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
// 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}; } }
Voir également
Fonctions
| • | llGetSimulatorHostname | – | Renvoie le nom du serveur | |
| • | llGetRegionTimeDilation | – | Renvoie la dilatation temporelle |

