Big AMX size
#1

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.
Reply
#2

I think than the new patch of Zeex (PAWN) is the problem, use of new the russian compiler and test.
Reply
#3

Text3D:Label = 0xFFFF

And that's how you just allocated a lot of memory for every label.
Reply
#4

Wow! thank you very much!

I was searching for this for long time (2 hours actually)

@TommyB @BigETI @KingHual
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)