Limits

From Second Life Wiki
Jump to navigation Jump to search

Summary

The Second Life Viewer and simulators have a division of labor, keeping track of the data that makes Second Life run. The Viewer's job is to:

  • Handle locations of objects.
  • Get velocities and other physics information, and does simple physics to keep track of what is moving where.

The simulator's job is to:

  • Run the physics engine.
  • Detect collisions.
  • Keep track of where everything is
  • Send locations of content to the Viewer along with updates when certain changes occur.

Limits are necessary for all of these components to work together. The list below outlines many of the Second Life numerical limits that affect your inworld experience. Some of these will likely change over time, so if you spot something incorrect/outdated, please take a moment to update it.

KBcaution.png Important: The scope of this page is focused on Linden Lab's official Viewers, keeping in mind 3rd-party viewers may differ. Cite sources and provide substantiation for limits that aren't provided by Linden Lab. Also, unconfirmed speculation goes on this discussion page. Don't add data without a hard limit, and don't add obscure trivia that doesn't practically affect the general inworld experience.

Avatar

  • Max. # of attachments - 38 combined HUD or body attachments.
    • They can be viewed by right-clicking your avatar and choosing Edit My Outfit.
    • With the formal introduction of multiple attachments to a single point in Viewer 2.4, you can attach up to 38 total objects, and they can all be attached to a single point.
  • Max. # of clothing layers - 60 including alpha, tattoo, shoe base, physics, socks, gloves, undershirt, underpants, shirt, pants, jacket, skirt
    • On viewers before Second Life Release 3.7.29.301305, the potential total was still 60, but limited to 5 items of each type.
    • In any case, only one each of shape, skin, eyes and hair base may be worn.
  • Max Clothing Texture - 512x512 px (except 128x128 px for eyes) - Server Side Appearance (and legacy baking on outside grids) will downsize larger textures.
  • Max. unassisted fly height - Stable hover at current ground elevation plus 5020m.
  • Common shoe sizes - Traditionally, most women's shoes were designed for a size 0 (zero) foot. Men's generally scale up to 14. Newer items (mesh and some sculpted) replace the system feet or conform to the avatar's shape, so adjustments may be necessary.
    • You can check this by going to Edit menu > Appearance and clicking on the Shape > Legs tab.
  • Max. length of avatar name - 31 for first name, 31 for last name, 63 in total (including the space).
  • Max. length of Username - All lower case and a maximum of 63 including the '.'(eg; firstname.lastname)
    • Older account user names are a combination of the First and last name in lower case separated by a period(.)(eg; lilmix.pixelmaid)
    • Modern user names are a single name(no period)(eg; john1234) - Max. length is 31 characters
    • The Legacy Names for modern user names always shows Resident as the last name. So the Max is 40 characters in total for a new avatar's legacy name(including the space and last name 'Resident')
  • Min. length of Display_Names - At least one script character
  • Max. length of Display Names - 31 characters
    • Display Names can include most Unicode script characters, spaces, and some punctuation.
  • Max. avatar speed - 250m/s (with only attachments to assist)
  • Max. teleport speed - 10 teleports per 15 seconds, since SL server 1.27.1

Animation

Limit affects Lower limit Upper limit Comment More coverage
Length of animation n/a 60.0 seconds Limited by length or Size, whichever is reached first n/a
Size of Animation n/a 120k bytes Limited by length or Size, whichever is reached first. Size is after conversion to SL internal animaton format, not BVH source which can be much larger. n/a
animation priority 0 4, with custom tools 6 n/a Animation_Priority
Number of unique joints per animation n/a 32 n/a n/a

Building

Limit affects Lower limit Upper limit Comment More coverage
Prim dimensions <0.01, 0.01, 0.01> <64.0, 64.0, 64.0> Used to be <10.0, 10.0, 10.0> prior to Second Life Server version 11.08.17.238770 llSetScale, PRIM_SIZE and Megaprim
Number of prims in a linkset n/a 256 prims Used to be 255 prior to Second Life Server version 1.26 n/a
Linking distance n/a Linkability_Rules n/a n/a
Physics cost for a physical object n/a 32.0 Additional notes:
  • If you try to link more, it'll either say "Can't enable physics for objects with more than 32 primitives" or "Object has too many primitives -- its dynamics have been disabled.".
  • On server versions 1.38 and below, each sitting avatar counted as 1 prim. From 1.40.2 the limit is only on actual prims.
OBJECT_PHYSICS_COST
Build or rez height n/a 4096.0 meters 768.0 meters for Viewers prior to version 1.20 n/a
Prim name length n/a 63 bytes UTF-8 string same limit for avatar names, although the character set for avatar names is significantly limited. n/a
Prim description length n/a 127 bytes UTF-8 string n/a n/a
Temporary prims' lifetime n/a up to around 60 seconds depends upon when the next garbage collector cycle is n/a
Number of temporary prims n/a RegionPrimLimit - NumberOfPrimsInRegion + Minimum(0.5*RegionPrimLimit, 1000) n/a n/a
Length of hovertext n/a 254 bytes UTF-8 string n/a llSetText and PRIM_TEXT

Communication

Limit affects Lower limit Upper limit Comment More coverage
Whisper distance n/a 10 meters /whisper as the first few characters in a message can be used in viewer-2-code based viewers in local chat. n/a
Chat distance n/a 20 meters text spoken as a "chat" step within gestures cannot be shouted or whispered. /whisper and /shout can be used in the "Replace with" field. n/a
Shout distance n/a 100 meters /shout as the first few characters in a message can be used in viewer-2-code based viewers in local chat. n/a
Length of a chat message and whether or not it is truncated 1 byte or single-byte character 1024 bytes or single-byte characters Limit does not apply to instant messages via llInstantMessage and communication between IM and email, the limit there is 1023 bytes or single-byte characters.

The viewer-to-server communication on negative channels is truncated to 254 bytes, and on positive channels, to 1023 bytes. These limits do not affect scripts.

llInstantMessage
Number of offline messages n/a Capped at 25 messages, unless the account has a Premium Subscription, in which case the cap raises to 50 messages. Number of offline messages (involving IMs, inventory offers, group notices, group invitations) received before messages get capped. Note: If autoAcceptNewInventory (debug setting) is set to TRUE (the default is FALSE), then all inventory offers, even above 25 (or 50 in the case of Premium members), go directly to inventory and do not count against the cap on offline messages. IM - Blog Post
Length of a properly delivered email reply to an IM n/a 1023 bytes or single-byte characters n/a n/a
Time after which a reply to an IM can be sent via email. when receiving the IM via email. 5 days after receiving the offline IM via email. n/a Second Life Blogs
Time period for which IMs are stored within Second Life. n/a 31 days after receiving the IM Torley Linden confirmed this with Kelly Linden n/a
Number of IMs sent by an object within an hour n/a 5000 per hour n/a n/a

Gestures

Limit affects Lower limit Upper limit Comment More coverage
Shortcut key mappings n/a 33 unique combinations, since F2F12 can be used with the Ctrl or Shift ⇧ modifiers. n/a All_keyboard_shortcut_keys and the knowledge base
Chat step length n/a 127 bytes or single-byte characters n/a n/a
Wait time n/a 3600 seconds (which is one hour) n/a n/a
Maximum steps data n/a 1000 bytes of packed data; saving with more data returns the message "Gesture save failed. This gesture has too many steps. Try removing some steps, then save again." Shorter text, for example, will allow more steps. n/a n/a
Length of included assets n/a see sections for animation, sound n/a n/a

Groups

  • Maximum number of groups you can belong to: 42
    • Roles within groups are sort of like sub-groups. In many cases, you can use them instead of creating new groups.
  • Minimum number of members in a group: 2
    • A group with only 1 person for 48 hours will be disbanded (cancelled). Unless the group owns land.
  • Maximum number of roles allowed in a group: 10 (including "Owners" and "Everyone", which cannot be deleted)
  • Maximum Group Name: 35 single-byte characters.
  • Maximum Group Title: 20 single-byte characters.
  • Maximum Length of a Group Notice: 512 single-byte characters.

Inventory

  • Maximum number of inventory items that can be sent in a folder: 42
    • Folders count as items too. This has more to do with packet size limits than cheeky Douglas Adams references.
  • Maximum number of inventory items that can be contained in a prim: None, but more items increase the loading time when you open it.
  • Maximum characters in an inventory item name: 63
  • Maximum notecard line: None, but scripts can only read the first 255 bytes.
  • Maximum notecard size: 65,536 bytes
  • Number of items in the Library: 1,248 as of 2010-06-17
  • Number of items in the Library: 2,210 as of 2012-11-04
  • Maximum number of inventory items displayed in a single inventory folder: Several thousand.
    • This was discussed during [1] "the folder will load up to the limit number of items, and remaining ones won't show up in the viewer. you still own them, they aren't lost, but they will be hidden until the folder size is reduced."
    • There is no specified limit for total avatar inventory, very large folders can be split.
    • There was discussion in the Third Party Developers' UG (4/10/2015) meeting about new inventory and login problems from having large numbers of items in a single folder. AISv3 removed server side limits on the number of items in a folder. Flat inventories are bad. No one is certain at what number of items in a folder cause a login problem. The fix is to clear the inventory cache (not the viewer cache) and log into a deserted, empty region then move inventory items into folders and sub-folders. - The problem appears at different a number of items depending on your computer and connection speed. Hopefully being on an empty region will give one enough edge to get logged in and do some corrective work before being dropped.

Land

  • Maximum parcel size: 65,536 meters²
    • Covering a whole region, or square on the World Map.
  • Minimum parcel size: 16 meters²
  • Maximum parcel name length: 63 single-byte characters
  • Maximum parcel description length: 255 characters
  • Region name length: Under Linden Concierge policy, minimum of 3 characters, and a maximum of 25 characters (including spaces). See Guidelines for Private Region Naming.
    • Rare exceptions exist, like X.
  • Maximum ban line height for "no entry" or "pay to access" (in other words, "allow public access" is turned off, or "allow group access" is turned on, in the parcel options) is the parcel's ground elevation plus 50 meters. If a user is explicitly banned by name, the height is the parcel's ground elevation plus 5000 meters. On current viewers this is visible to the full extent.
  • Maximum prims in a region:
  • Maximum auto return value: Besides "0" (which means never), 999,999 minutes is the highest auto return value.
  • Terraforming limits:
    • Most mainland can be raised/lowered by 4 meters (+/-).
    • Some mainland cannot be terraformed, including: Bay City regions, Boardman, Brown, De Haro, Kama City regions, Nautilus City regions, Nova Albion regions, and Shermerville regions.
    • Linden Homes do not allow terraforming.
    • A few, very old mainland Regions like Da Boom have a terraform range of 40 meters (+/-).
    • Estate (private island) terraformability is settable to a maximum of 100 meters (+/-) by the estate owner or managers.
  • Maximum water height: 100 meters using inworld controls, 255 meters by using a *.raw file upload.
    • Region water height is usually 20 meters, and adjacent regions should have the same water height, or else they will look discontinuous.
  • Maximum terrain height: 255 meters using inworld controls (mainland limit), 510 meters by using a *.raw file upload.
  • Miscellaneous estate limits: You can have a maximum of 10 estate managers, 500 allowed Residents, 63 allowed groups, and 500 banned Residents.
    • See World menu > Region/Estate > Estate tab.
  • Maximum number of agents
    • Full region: 100 (Typically set to 40 on mainland, 55 on Linden Homes regions, but this does vary. Some meeting areas have this set to 60 and higher.)
      • Recent server performance improvements make regions with 60 agents in them perform quite well.
    • Homestead: 20
    • Openspace: 10
  • Freeze Time: Land owners can freeze other Residents for up to 30 seconds. Members of land owning groups can also be granted this ability.
  • Minimum parcel that can be listed in Places or All search: 144 meters²
  • Minimum parcel that can be listed in Events: 512 meters²
  • Maximum altitude for event listings: 768 meters (WEB-814)
  • Maximum heights that objects can be seen on the World Map: 400.005m

Mesh

Limit affects Lower limit Upper limit Comment More coverage
Number of vertices n/a 65536 vertices per LOD for each mesh - See discussion page n/a n/a
COLLADA file size n/a Maximum mesh asset size after compression is 8 MB, roughly equivalent to a 256 MB Raw COLLADA file. n/a n/a
Bone influence weights per vertex n/a 4 n/a n/a
Number of materials per mesh n/a 8 n/a n/a
Number of materials per face n/a 1 n/a n/a
Physics weight for a vehicle n/a 32.0 n/a n/a

User Found Temporary Mesh limits:

Because of an apparent bug in the importer stay within these limits.

  • 174,752 triangles, beyond which additional triangles will appear as holes.
  • The 64k vertices per material is pre-empted by a limit of 21,844 triangles per material, which is presently reported as BUG-1001. (4/2014 - See discussion page)


The import process will continue making new materials beyond 8 x 21,844 (=174,752) triangles, but the extra triangles then get dropped by the limitation to 8 materials, causing holes in the resulting object. Over the 21,844 triangle limit, the vertex count will start to climb steeply, even with smooth shading, because the materials get highly interspersed. So the same vertices have to appear in multiple material lists. So the moral of the story is to stay below 21,844 triangles per material, for now, if you want to avoid some unexpected effects.

Misc.

  • Billing and Trading Limits - Includes LindeX currency exchange limits.
  • Contacts in Communication > Friends tab - A maximum of 20 simultaneous contacts can be selected to change permissions, remove, or invite for a conference chat.

Navigation

Height counter error above 2147483647 meters
  • Absolute height limit: 2147483647 = 231 − 1 meters, which causes the altitude counter to roll over. Altitudes well below this cause graphics errors probably due to limited floating point number precision.
  • Highest z-value of an SLurl, that will still teleport you to a positive altitude: 4096
    • This used to be much higher, but is clamped in late model viewers.

Profile

Each 7-bit ASCII character is encoded in one byte. International characters might need more bytes. When pasting text instead of typing, you can get in one byte more into each of the below.

  • 2nd Life tab's About field - 510 bytes
  • Picks tab - 10 picks with 1022 bytes each
  • 1st Life tab's Info field - 253 bytes
  • Classified tab - 100 listings with x bytes each
  • My Notes - 1022 bytes

Performance

  • Healthy Viewer FPS - Generally, FPS above 15 is good. The higher it gets, the smoother. You can check via Advanced menu > Performance Tools > Lag Meter, or for more advanced usage, see Advanced > Performance Tools > Statistics Bar.
  • Avatar Rendering Cost scores - Learn all about it!

Scripting

  • Height at which scripts reactivate on a no-script parcel - 50 m above terrain mesh. Scripted objects that take controls will keep running when you fly down or enter a no-script parcel. (If scripts are disabled in the region debug panel, they will not run at any height.)
  • Maximum height where scripts can run - none, as long as the object remains rezzed or attached.
  • Maximum script source code size - 65536 single byte characters (that's a viewer limit and can be changed in the config file 'panel_script_ed.xml').
  • Maximum script memory size (LSO) - 16384 bytes.
  • Maximum script memory size (Mono) - 65536 bytes (the maximum memory available to Mono scripts can be constrained via llSetMemoryLimit).
  • Maximum active listeners per script - 65.
    • Usable channel for each listener - min. -2147483648, max. 2147483647, including the following special channels: PUBLIC_CHANNEL and DEBUG_CHANNEL.
  • For specific scripting limits, look up calls in the LSL Portal.

Sound

Limit affects Lower limit Upper limit Comment More coverage
Sound length n/a 10.00000 seconds (441,000 samples) 441,001 samples (10.00002 seconds) won't work. You're advised to cut longer sounds into 9.9-second-pieces. n/a

Textures

  • Aspect ratios of profile, place, etc. pictures — all of these were measured at UI size (Edit menu > Preferences > General tab > UI Size) = 1.000:

Second Life Viewer 3.6

  • Search > Classifieds thumbnail - ~3:2 (101×69 pixels)
  • Search > Classifieds expanded - ~4:3 (159×120 pixels)
  • Search > Classifieds expanded > More Info - native aspect ratio
  • Search > Destination Guide thumbnail - ~3:2 (101×69 pixels)
  • Search > Destination Guide expanded - ~4:3 (159×120 pixels)
  • Search > People - 1:1 (100×100 pixels)
  • Search > Places expanded ~4:3 (159×120 pixels)
  • Place Profile - ~3:2 (290×197 pixels)
  • About Land > Options tab - ~4:3 (195×150 pixels)
  • Profile > Picture - native aspect ratio; thumbnail cropped to 72×72 pixels; zoomed uncropped up to 300×300 pixels
  • Profile > Real world picture - native aspect ratio; thumbnail cropped to 45×45 pixels; zoomed uncropped up to 300×300 pixels
  • Profile > Picks thumbnail - 4:3 (60×45 pixels)
  • Profile > Pick expanded - 4:3 (320×240 pixels)

1.x Series Viewers

(official Viewer up to 1.23.5, still used by some Third Party Viewers)

  • Search > All for "Classifieds", "People", and "Places" - 4:3 (256×192 pi×els)
  • Search > Places and Classified tabs - ~7:5 (398×282 pixels)
  • Search > Land tab - ~7:5 (358×252 pixels)
  • Profile > 2nd Life tab - ~4:3 (178×133 pixels)
  • Profile > Picks tab - 16:9 (288×162 pixels)
  • Profile > 1st Life tab - 1:1 (133×133 pixels)
  • Profile > Classifieds tab - ~3:2 (206×137 pixels)
  • Profile > Web tab - 1:1 (400×400 pixels)
    • A scrollbar uses 15 pixels on the right-hand side.
  • About Land > Options tab - ~3:2 (178×117 pixels)
  • Group Information > General tab's "Group Insignia" - 1:1 (126×126 pixels)

All Viewers

  • Maximum texture size - 1024×1024 pixels
    • All Second Life textures are constrained to powers of 2 (e.g., 128, 256, 512).
    • Some textures inworld have a resolution as high as 2048×2048; this is due to a previous limit that was higher.
    • We strongly recommend you use as small textures as possible because larger ones consume more memory and take substantially longer to load.
    • Where large textures are being forced by import to only 512×512, lower your ...> Preferences >...> UI Size under 1.0, to increase import size to the max 1024×1024.

Notes

In general 1 byte is enough to contain one character.