Jump to content

Search the Community

Showing results for tags 'memory'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • People Forum
    • Your Avatar
    • Make Friends
    • Lifestyles and Relationships
    • Role Play
    • General Discussion Forum
    • Forums Feedback
    • Missed Connections
    • Second Life Education
  • Places and Events Forum
    • Favorite Destinations
    • Upcoming Events and Activities
    • Games in Second Life
  • Official Contests & Events
    • Leap Into Love Snapshot Contest
  • Creation Forum
    • Fashion
    • Art, Music and Photography
    • Animation Forum
    • Bakes on Mesh
    • Environmental Enhancement Project
    • Machinima Forum
    • Building and Texturing Forum
    • Mesh
    • LSL Scripting
    • LSL Library
    • Sansar for Second Life Residents
  • Technology Forum
    • Second Life Server
    • Second Life Viewer
    • Second Life Web
    • General Second Life Tech Discussion
  • Commerce Forum
    • Merchants
    • Inworld Employment
    • Wanted
  • Land Forum
    • General Discussion
    • Mainland
    • Regions for Sale: Full Private Island
    • Region for Rent: Full Private Island
    • Regions for Sale: Homesteads
    • Region Rentals: Homestead
    • Parcels for Sale: Mainland
    • Parcels for Rent: Mainland
    • Wanted: Full Private Island
    • Wanted: Homesteads
    • Wanted: Mainland
  • International Forum
    • Deutsches Forum
    • Foro en español
    • Forum in italiano
    • Forum français
    • 日本語フォーラム
    • 한국어 포럼
    • Fórum em português
    • Forum polskie
    • المنتدى العربي
    • Türkçe Forum
    • Форум по-русски
  • Adult Content Forum
    • Highlight Upcoming Events
    • General Discussion
    • General Announcements
  • Answers
    • Abuse and Griefing
    • Account
    • Avatar
    • Creation
    • Inventory
    • Getting Started
    • Controls
    • Land
    • Linden Dollars (L$)
    • Shopping
    • Technical
    • Viewers
    • Everything Else
    • International Answers

Blogs

  • Commerce
  • Featured News
  • Inworld
  • Tools and Technology
  • Tips and Tricks
  • Land

Categories

  • English
  • Deutsch
  • Français
  • Español
  • Português
  • 日本語
  • Italiano
  • Pусский
  • Türkçe

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 2 results

  1. Hi Linden people ? 1- SUMMARY I have performed a memory benchmark on LSL Mono scripts (see below for details). It shows that on average, for each global variable of type integer, more than 22 bytes are consumed from the script memory. 22 bytes is a lot, compared to the actual integer payload (4 bytes). Considering that LSL Mono scripts have only 64K bytes available, it would be nice to spare them... - What accounts for the 20+ bytes per integer? - Is there a way to reduce this memory consumption ? 2- BENCHMARK CODE The benchmark is very simple : integer i1; integer i2; integer i3; ... integer i<N-1>; integer i<N>; default { state_entry() { llOwnerSay((string) llGetFreeMemory()); } } 3- BENCHMARK RESULTS N llGetFreeMemory() Comments 0 62172 1 62164 2 bytes for integer i 2 62164 0 byte for i2 3 62156 2 bytes for i3 4 62156 0 byte for i4 5 62148 8 bytes for i5 6 62148 0 byte for i6 ... 10 62132 11 61612 520 BYTES FOR i11!!! 12 61612 0 byte for i12 13 61604 8 bytes for i13 14 61604 0 byte for i14 15 61596 8 bytes for i15 16 61596 ... 17 61588 18 61588 ... 38 61508 39 61508 40 60988 512 BYTES FOR i40!!! ... 1000 40252 21.9 byte average per integer 2000 17308 22.4 byte average per integer 2742 4 22.7 byte average per integer 2743 heap stack collision 4- TENTATIVE ANALYSIS Because global variables have to be re-initialized on script reset, I suspect Mono keeps a copy of the initial value in memory. This would account for 8 bytes per integer. The fact that free memory decreases by about 512 bytes with integers i11 and i40 (in the benchmark) suggests that i11 and i40 have resulted in an increase of the script's code size (in SL LSL, memory for code increases by chuncks of 512 bytes). Thus I suspect that for each global variable, in addition to the above-mentioned 8 bytes, the Mono compiler adds code to the script, to re-initialize the value of the variable on script reset. Still, 22 bytes per integer is an awful lot. For example, for un-assigned global integers (such as in the benchmark code), a simple loop assigning value 0 should suffice. Suggestions, anybody?
  2. Sire Anthony

    SL Crash

    Hi been on SL for years, sometimes on my Laptop sometime on my bedroom PC. I've rebuilt my main PC. Now I'm having problems and SL crashes after a few minutes. If I stay still, I last longer. Preferences set to recommended or lower. PC = Win10 (64) 6 core AMD FX-6300/ Gigabyte GA-78LMT-USB3 R2 (Socket M2) MB/ 8G DDR3 memory / NVIDIA GeForce GT 730 (4G) graphics card I thought upgrading would make SL better for me...in fact its made it worse. I'm using latest SL download and latest Graphics drivers (from Nvidea) Again I log in and ok for few minutes ( 2 or 3) then SL freezes or crashes. Any help gladly accepted. Sire Anthony Ps. Just a point. its not a broadband problem. My laptop and other Pc still run SL even with 2 screens.
×