Difference between revisions of "Energy"

From Second Life Wiki
Jump to navigation Jump to search
m (LSL Energy moved to Energy)
Line 3: Line 3:
Please describe how it works! Answer at least the following questions:
Please describe how it works! Answer at least the following questions:
* What's the energy content of an object?
* What's the energy content of an object?
** Depends on the mass
* Is it possible to calculate the energy consumption of an action, e.g., running a script;
* Is it possible to calculate the energy consumption of an action, e.g., running a script;
** Yes, but it is involved.
* When the energy is consumed how much time does it take to build it up again?
* When the energy is consumed how much time does it take to build it up again?
* During the energy build-up can we execute all actions needing less energy than the enerfy available?
** 200/mass units of energy per second.
* During the energy build-up can we execute all actions needing less energy than the energy available?
** Yes, energy regenerates while the script runs.


Also
Also
* Does the script totally stop when it runs out of energy?  Or pause?
* Does the script totally stop when it runs out of energy?  Or pause?
** The script pauses.
** The script pauses until enough energy has regenerated to continue.
* Are events that occur during such an "energy pause" queued up so when it it restarted they are then triggered?
* Are events that occur during such an "energy pause" queued up so when it it restarted they are then triggered?
** Think so yes.
* At what rate does energy return (so one can add pauses in scripts for energy to return)?
* At what rate does energy return (so one can add pauses in scripts for energy to return)?
** 200/mass units of energy per second.

Revision as of 11:52, 24 February 2007

When a function is called it uses energy, when an object runs out of energy all scripts inside it stop executing. Energy slowly returns to an object over time.

Please describe how it works! Answer at least the following questions:

  • What's the energy content of an object?
    • Depends on the mass
  • Is it possible to calculate the energy consumption of an action, e.g., running a script;
    • Yes, but it is involved.
  • When the energy is consumed how much time does it take to build it up again?
    • 200/mass units of energy per second.
  • During the energy build-up can we execute all actions needing less energy than the energy available?
    • Yes, energy regenerates while the script runs.

Also

  • Does the script totally stop when it runs out of energy? Or pause?
    • The script pauses until enough energy has regenerated to continue.
  • Are events that occur during such an "energy pause" queued up so when it it restarted they are then triggered?
    • Think so yes.
  • At what rate does energy return (so one can add pauses in scripts for energy to return)?
    • 200/mass units of energy per second.