AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   static (https://forums.alliedmods.net/showthread.php?t=196017)

GhostMan 09-14-2012 11:28

static
 
1 Attachment(s)
I'm wondering if its nessecery to creat so much STATIC variables? Static variable's information aren't deleted from memory until server restart, so this causes server to use more ram, isn't it?

This is pretty much this plugin https://forums.alliedmods.net/attach...7&d=1263622645 but a bit modified (i know it's not perfect, to dont judge me :O)

fysiks 09-14-2012 19:38

Re: static
 
Quote:

Originally Posted by GhostMan (Post 1799041)
I'm wondering if its nessecery to creat so much STATIC variables? Static variable's information aren't deleted from memory until server restart, so this causes server to use more ram, isn't it?

Static variables will remain allocated for that map. Why do you ask? Are you having memory use issues? Generally you won't even notice a difference. In fact, static variables are actually used (in most cases) to improve performance (processor time).

GhostMan 09-15-2012 03:17

Re: static
 
Quote:

Originally Posted by fysiks (Post 1799393)
Are you having memory use issues?

Yes. I'm having 2 hlds servers on win7 and one of them uses way much more memory than the other so i'm trying to find out that is the prob.

Arkshine 09-15-2012 03:57

Re: static
 
What do you mean by "much more memory" ? Unless you have a ton of big plugins/modules, your problem is not there.


All times are GMT -4. The time now is 08:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.