Advertisement
RavenStygian

Some Common Script Resource Costs

Jul 6th, 2023 (edited)
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* In summery, base cost of a (mono) script is about 3000 bytes memory use and 150 nanoseconds CPU cost. */
  2.  
  3. //CPU usage of "empty script" - remember has to run for over 30 minutes to not include compile cost if want to do test.
  4. //Script info: 'CPUCostEmptyScript': [1/1] running scripts, 64 KB allowed memory size limit, 0.000151 ms of CPU time consumed.
  5. default
  6. {
  7.     state_entry()
  8.     {
  9.     }
  10. }
  11.  
  12.  
  13.  
  14. //Memory use of nearly empty script
  15. //MemoryUse: 3364
  16. default
  17. {
  18.     state_entry()
  19.     {
  20.         llSay(0, (string)(65536 - llGetFreeMemory()));
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement