Jump to content
  • 0

When are @var saved


Kreustoo

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

Hi,

I was wondering if @var (temporary player) are consuming time. I know that too much global can make the server lagg cause it saves them every 1min, but what about the @var ?

When they are created, they take some memory and after, are they just "checked" by the server when you try to modify them and when you disconnect (to delete them) ? Or they are "checked" (or something like that) when something happen (like changing map, or equip/unequip etc.) ?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

They are saved in RAM and deleted when the character logs out or when the @var is deleted (set to 0 or string set to ""). Since there is no secondary storage, there is no "save interval". They are updated (in RAM) only when the @var changes.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

Thanks a lot, I wanted to be sure.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...