Optimization Gamemode - 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: Optimization Gamemode (
/showthread.php?tid=375015)
Optimization Gamemode -
gabitzu4ever - 04.09.2012
Hello, I want to know how to optimize a full gamemode type gf.
Re: Optimization Gamemode -
jameskmonger - 04.09.2012
If you script your gamemode how you scripted your signature, then you're going to be optimising for a long time.
Re: Optimization Gamemode -
mamorunl - 04.09.2012
Quote:
Originally Posted by ******
There are multiple topics on ways of optimising different bits of code, but there's no single answer. The first step is to profile your code and see what's actually running slowly, onec you know that then getting single optimisations methods for that one part is easier, but you can't do it without that data and only you can do that.
|
Wouldn't you agree that starting with memory optimization is the best start for someone like this (and the MYSQL queries as hinted above as well xD)?
Re: Optimization Gamemode -
gabitzu4ever - 05.09.2012
Quote:
Originally Posted by mamorunl
Wouldn't you agree that starting with memory optimization is the best start for someone like this (and the MYSQL queries as hinted above as well xD)?
|
Using MySQL
I made new bool variables.
I deleted unused variables.
PS: ****** day on directly as I understand. I understand that to use less CPU / RAM but how?