PDA

View Full Version : Unoptimized Script


Hunud
10/07/2017, 10:59 AM
Hi guys,

I have no any script but i was corious about what could happen if my script is a bad optimized ? Is there any definition of it or ? I would like to hear a few words from experienced peoples. Thanks

Sew_Sumi
10/07/2017, 11:23 AM
Lag, Crashes, Disconnects...

Hell, even certain things could fail such as functions.


All depends how shitty the code is as to how bad it will fail.

Hunud
10/07/2017, 11:35 AM
Thanks. I was looking for it +REP

iLearner
10/07/2017, 12:14 PM
Lag, Crashes, Disconnects...

Hell, even certain things could fail such as functions.


All depends how shitty the code is as to how bad it will fail.

Not really, an unoptimized script could work good from server side.

You just have to get to know with new techniques and functions, for example in old scripts we used to use for with max players, now we use with poolsize(), would work in both but with poolsize() its much more optimized as the for loop would loop until the maximum connected id.

Mauzen
10/07/2017, 12:48 PM
If you plan to do bad optimisations, you should rather do no optimisations at all.

Kaperstone
10/07/2017, 02:05 PM
[QUOTE=Hunud;3900118]Is there any definition of it or ?/QUOTE]
http://i.imgur.com/yagz4VF.png

Or in other words, take an ugly script and make it faster.
The art of making a beautiful & proper code :cool: