Server Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Help (
/showthread.php?tid=431948)
Server Help -
Merit - 20.04.2013
I have made a gamemode from scratch. Its almost finished. Its a MySQL based gamemode. But the thing is that when we compile it, it takes almost 20 seconds to get compiled and also the .amx file is almost 7 MB in size. it consist of almost 25k lines. So i wannna know whether these huge size of .amx file and 25k lines make this gamemode laggy?? Please help
Re: Server Help -
Fredrick - 20.04.2013
It wont make a gamemode laggy it dont matter how big the script is but it does take a long time to compile a gamemode if its big so my answer it wont lag any servers
Re: Server Help -
Ponii - 20.04.2013
Just wait and compile.. probably there is alot of createdynamicobjects.. so ig will be alittle laggy
Re: Server Help -
Helia - 20.04.2013
Allocating memory space for your variables cause amx size to be bigger than expected.
Try to use SA:MP PlayerVars.
Lag issue, Try to avoid using OnPlayerUpdate, millisecond timer interval as much as you can.
Re: Server Help -
alimash - 20.04.2013
Are you sure you compiled the currect file ?
Please compile it ( full - wait for finished )
Re: Server Help -
Merit - 21.04.2013
Quote:
Originally Posted by alimash
Are you sure you compiled the currect file ?
Please compile it ( full - wait for finished )
|
I compiled the whole file fully and it showed as finished compiling. But when i look at .amx file, its 7 MB in size (.pwn file is almost 1 MB in size) . Also i dont have a lot of CreateDynamicObject(), just only a few. I didnt used any SA:MP PlayerVars. Instead i have a lot of enumerators declared for all those player related datas. I havent used anything under OnPlayerUpdate. But i have declared 5 global timers under OnGameModeInit(), which is used globally for all players running in 1 second interval of time. Is these things, the reason why the .amx file is big?? Will it lag server??
Re: Server Help -
alimash - 21.04.2013
When you compile the .pwn file did you got any error ?
Re: Server Help -
yoh - 22.04.2013
Just wait and compile.. probably there is alot of createdynamicobjects.. so in game will be laggy.