How to keep your Server Memory low[Not my idea] - Printable Version +- ElitesHost Forums (https://forum.eliteshost.com) +-- Forum: Community (https://forum.eliteshost.com/forumdisplay.php?fid=5) +--- Forum: Information & Guidelines (https://forum.eliteshost.com/forumdisplay.php?fid=16) +---- Forum: Tutorials (https://forum.eliteshost.com/forumdisplay.php?fid=17) +---- Thread: How to keep your Server Memory low[Not my idea] (/showthread.php?tid=41) Pages:
1
2
|
How to keep your Server Memory low[Not my idea] - alterego - 12-17-2016 So people have asked question all over the internet about HAVING BIG MEMORY and that's a problem since it lags the players gaming experience and the more this memory gets bigger it gets lager and lager. So here are some easy simple tips you might have overlooked on your server. Number 1: Have you defined your #define MAX_(e.g MAX_PLAYERS, MAX_HOUSES, MAX_BUSINESSES to a realistic number? Code: #undef MAX_PLAYERS Number 2: Keep you OnPlayerUpdate almost empty. What do I mean? Code: public OnPlayerUpdate(playerid) Number 3: This is the best part. people have told us about arrays and stuff. and do you understand what they're saying? No, mean either I'm no programmer at least but I know how to script by reading. So arrays are simply a holder or such example is: Code: string[128]; string holds 128 letters from your keyboard you go over that and string won't be able to read it. In lay mans explanation. A human being only have two hands. human[2]. If you get over that capacity of two human hands. A human will not be able to carry anymore because his two hands are used. Is that understandable? Now let's get back to the array for memory usage. Here are some codes. Try the difference between this two, compile them and see the difference. Code: new string[1024]; So keep those arrays as small as possible and don't waste too much on it. If you need 20 letters then keep that 20 letters at bay. don't go higher than that coz it'll cost your server memory a burden. Now if this have helped you on any occasion a thank you and a rep is only needed, and if you have more tips and tricks for the scripters out there then feel free to post them down there. If you have any questions or violent reactions feel free to tell me, I might have said something wrong and edit it. I just want to help those who needs them. Thanks for reading. RE: How to keep your Server Memory low[Not my idea] - Pawno - 12-17-2016 Got'cha Nice Tutorial.. good for newbie. RE: How to keep your Server Memory low[Not my idea] - KidPlaySamp - 12-17-2016 Niiiice it helps RE: How to keep your Server Memory low[Not my idea] - ZuZu - 12-17-2016 Nice, is very useful. RE: How to keep your Server Memory low[Not my idea] - alterego - 12-18-2016 Thanks... RE: How to keep your Server Memory low[Not my idea] - ViRuS - 12-18-2016 Nice helpfull.. Thanks for help us. RE: How to keep your Server Memory low[Not my idea] - Sentinel - 12-21-2016 Nice Tutorial! RE: How to keep your Server Memory low[Not my idea] - rifat - 12-22-2016 Thank you i was finding this thanks for sharing RE: How to keep your Server Memory low[Not my idea] - alterego - 12-23-2016 (12-22-2016, 04:38 PM)rifat Wrote: Thank you i was finding this thanks for sharing It's good to know I can help people with stuffs RE: How to keep your Server Memory low[Not my idea] - Yaa - 01-10-2017 nice tuto |