Raised This Month: $ Target: $400
 0% 

static


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 09-14-2012 , 11:28   static
Reply With Quote #1

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)
Attached Files
File Type: sma Get Plugin or Get Source (plug.sma - 496 views - 14.6 KB)
GhostMan is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-14-2012 , 19:38   Re: static
Reply With Quote #2

Quote:
Originally Posted by GhostMan View Post
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).
__________________
fysiks is offline
GhostMan
Senior Member
Join Date: Jun 2012
Old 09-15-2012 , 03:17   Re: static
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
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.
GhostMan is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-15-2012 , 03:57   Re: static
Reply With Quote #4

What do you mean by "much more memory" ? Unless you have a ton of big plugins/modules, your problem is not there.
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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