Big AMX size - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Big AMX size (
/showthread.php?tid=643898)
Big AMX size -
Xeon™ - 29.10.2017
Hey there!
Recently i added a label system to my script (xsf script not mine), so after i did get some weird thing
That's when i define MAX_LABELS to 2000 i get 128 MB (.amx file)
PHP код:
#define MAX_LABELS 2000
2000 = 128 MB
800 = 53 MB
200 = 16 MB
1 = 3 MB
which is not normal at all
PHP код:
enum ENUM_LABEL_SYSTEM
{
Input[250],
Float:TX,
Float:TY,
Float:TZ,
VW,
Text3D:Label = 0xFFFF,
Owner
};
new TextInfo[MAX_LABELS][ENUM_LABEL_SYSTEM];
Here's where i used it ^
Any help would be appreciated.
Re: Big AMX size -
Unrea1 - 29.10.2017
I think than the new patch of Zeex (PAWN) is the problem, use of new the russian compiler and test.
Re: Big AMX size -
Spmn - 29.10.2017
Text3D:Label
= 0xFFFF
And that's how you just allocated a lot of memory for every label.
Re: Big AMX size -
Xeon™ - 29.10.2017
Wow! thank you very much!
I was searching for this for long time (2 hours actually)
@TommyB @BigETI @KingHual