Mesh/Mesh Server Weight
From Second Life Wiki
< Mesh
Motivation
The server must track all pieces, or prims, in the region at all times. As such every individual piece, or prim, has a certain cost to the server regardless of its physical or visual complexity. There are, however, some factors that make an object more or less expensive for the server to track: in particular truly passive objects that are not scripted or physical are much easier to track than scripted or physical objects.
Concept
There are two basic goals for this cost:
- The maximum server load from objects should not increase from mesh content.
- Allow more passive content than before.
Equation
MIN{ (0.5 * num_prims) + (0.25 * num_scripts), num_prims }
Where:
- num_prims: the number of prims in the linkset
- num_scripts: the number of scripts in the linkset
- MIN{x,y}: minimum value between x and y
Examples
| Prims | Scripts | Server Weight |
|---|---|---|
| 1 | 0 | 0.5 |
| 1 | 1 | 0.75 |
| 1 | 2 | 1.0 |
| 1 | 20 | 1.0 |
| 2 | 3 | 1.75 |
How To Optimize
- Consolidate mesh shapes such that the individual uploaded meshes are as complete as possible.
- A more complete mesh will generally have a streaming cost of several PE and not be server bound.
- Separate static content from dynamic content when possible.