Posts: 1,648
Threads: 482
Joined: Jun 2010
After noticing my AMX file is 85MB and my PWN is 992KB I was concerned that the AMX shouldn't be that much...Would this have any affect on game play?
I'm almost about to cry, but any advice would help.
Thanks,
Grant.
Posts: 1,648
Threads: 482
Joined: Jun 2010
I did have a slight heart attack. Thank you for your kind reply. I appreciate it.
Posts: 1,222
Threads: 23
Joined: Jul 2009
Reputation:
0
Do you perhaps have unreasonably large arrays? An increase of that magnitude seems a bit odd.
Posts: 1,648
Threads: 482
Joined: Jun 2010
Uhhh, I've been through them, not really seeing anything abnormal entirely.
Posts: 249
Threads: 26
Joined: Jan 2011
Reputation:
0
One current gamemode that I have is 75mb and nothing is wrong with it.
Reason for that was the high limit of arrays / defines
Posts: 1,004
Threads: 18
Joined: Oct 2014
Reputation:
0
Well, most of the gamemodes I've seen did not exceed the size of 10mb.
The compiled file size depends not only on the gamemode size itself, but also on the includes. This being said, I assume that most of your script consists in includes.
Posts: 1,648
Threads: 482
Joined: Jun 2010
Most of it is actually in the game mode itself, I don't use many includes.
Posts: 734
Threads: 8
Joined: Jun 2009
Using lots of switch cases (eg. case 0...100000) can also cause bigger .amx size.
You definately should be concerned, not that the server couldn't handle it, but it's just a waste of space, normal compiled gamemodes with lots of features should be 10-30 MB max.
Posts: 230
Threads: 67
Joined: Jun 2012
Reputation:
0
This is a concern, you probably are using oversized strings or infinite loops or leaking memory.