Reduce memory usage?

02/19/2013 13:47 derpingson#1
Hello, i've an edited version of Trinity base, it's 5672+

The source is pretty stable, and most of bugs i can handle, however, there's one thing bothering me, it SUCKS the rams, with 0 players online it runs on 200mb!!!

There source is kinda not original, because most of numbers are in Hexadecimal and there's that "goto Label_1B9C5;" thing

It also have a LOT of auto invite that check every 1 sec

this is one of em:
PHP Code:
if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 00)
                        {
                            foreach (
Client.GameState client in Kernel.GamePool.Values)
                            {
                                
// if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
                                
{
                                    
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6"Hourly PK has started, wanna play?");
                                    
npc.OptionID 190;
                                    
client.Send(npc.ToArray());
                                }
                            }
                        } 
Can you please help me figure out what's taking a lot of rams to deal with it, i know i can't reduce it from 200mb to 11mb, but at least the half.

Thank you ;)
02/19/2013 14:06 shadowman123#2
i've searched About this in google but found that there isnt smthing definite that consumes High ram .. so what u have to do is bring Analyizer tool and it will help u know which part consumes alot of ram
02/19/2013 15:42 EOS 60D#3
Try searching ReSharper on google..
02/19/2013 16:14 Super Aids#4
Quote:
The source is pretty stable
Quote:
it SUCKS the rams, with 0 players online it runs on 200mb!!!
Something is wrong here.

To be honest, make your own source or just deal with it.
02/19/2013 16:23 derpingson#5
i'm still far from being able to make my own source
and what im doing now is trying to deal with it

i'll do what the guys told me as soon as i get on pc(phone right now)
02/19/2013 18:35 _tao4229_#6
RAM is cheap, HDD reads aren't.
02/20/2013 00:46 U2_Caparzo#7
it's mainly because the source loads the DMaps :|, if u want reduce them use DMapLoader or TinyMaps, search for them