Just a simple question - 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: Just a simple question (
/showthread.php?tid=584023)
Just a simple question -
Dragonic - 01.08.2015
As the title says, just a simple question:
What is less RAM consuming or anything like that, adding a script as a filterscript or directly into the gamemode?
Thanks (:
Re: Just a simple question -
Variableā¢ - 01.08.2015
Removed.
Re: Just a simple question -
xVIP3Rx - 01.08.2015
I think, it does not matter, if you wanna use less ram you probably have to use less variables in your script
(as far as I know)
But you shouldn't worry much about ram, people say 512 if enough for a server.
Adding your code to a filterscript or gamemode will consume the same amount of ram, but I think gamemode run codes faster then a filterscript, thats the only advantage I see.
Re: Just a simple question -
Dragonic - 01.08.2015
Quote:
Gamemodes must be in gamemodes.
|
Hmmm... Yes!? I'm talking about scripts that add something to the Server, like a map + teleport.
Quote:
gamemode run codes faster then a filterscript
|
You mean that gamemode may cause less lagg than adding stuff as a filterscript as it loads it faster?
Re: Just a simple question -
xVIP3Rx - 01.08.2015
By my experience, yes.
If you're coding something and you want it to run fast, put in the gamemode.
If your adding a side-code, like a minigame and don't really care about speed, put it in a Filterscript
Re: Just a simple question -
Dragonic - 01.08.2015
Thanks!