Pawn question
#1

I'm scripting a gamemode from scratch. Currently it counts 10080 lines, i added more debug info when i compile and i get this:

Quote:

Header size: 13052 bytes
Code size: 1280620 bytes
Data size: 3630068 bytes
Stack/heap size: 17039360 bytes; estimated max. usage=3694 cells (14776 bytes)
Total requirements:21963100 bytes

My question is:

Are those sizes good for a 10k+ lines script or i should optimize it better?

Amx size is 1.678 KB.
Reply
#2

10k seems pretty appropriate. If I remember correctly, the server I used to frequent til it shut down was 33k. (not including maps)
Reply
#3

We can't give you an appropriate answer just off the number of lines in your script. What features does your gamemode have? Do any of them require heavy memory? How many whitespaces are in your script? Comments?

Follow good programming practices and you won't have an issue. But this is an answer no one can give you without talking out of their ass.
Reply
#4

Код:
Total requirements:21963100 bytes
I get 3.3Mil with a 16k script, You could do a bit more optimization here and there.
Reply
#5

Quote:
Originally Posted by Grim_
But this is an answer no one can give you without talking out of their ass.
Here's an example!
Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
Код:
Total requirements:21963100 bytes
I get 3.3Mil with a 16k script, You could do a bit more optimization here and there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)