Posts: 1,121
Threads: 139
Joined: Nov 2009
Reputation:
0
Well, I've downloaded this server and hosted it but the hoster thing says it is running too much resources. I'm really new to scripting and what does 'resources' mean? Like filterscripts, strings? or what.. We unloaded all filterscripts, so it was the gm.
So what should I change in the gm to make it lower on resources?
Thanks
Posts: 4,510
Threads: 163
Joined: Mar 2008
Reputation:
0
Check each loop, and each timer.
Posts: 148
Threads: 2
Joined: Mar 2009
Reputation:
0
if by resources they mean cpu usage, then the problem could be caused by a bug which causes the cpu usage to increase significantly, try to use less loops.and if you downloaded the gm from here, check its thread, it probably got updated and this type of bug was dealt with.
Posts: 815
Threads: 65
Joined: May 2010
Use PVars instead of normal vars. Use foreach instead of regular loops. Use MySQL/y_ini for file saving. Don't use 256 sized strings. Use less filterscripts. Use zcmd/ycmd.
Posts: 1,317
Threads: 23
Joined: Feb 2010
Reputation:
0
Resources is as it is. For example it stresses the CPU to much or it uses to much RAM memory.
Like said before, try looking for loops inside loops, or alot of stuff under OnPlayerUpdate(playerid).
I'd like to note, that I'd preffer normal variables over PVars, unlike the poster above me. Normal variables are staticly allocated.