Server optimization
#6

My suggestion:

- Optimize your database.
- Fix errors/warnings in server_log.txt and mysql_log.txt...
- Fix bugged/removed fields, tables and queries.
- Remove unnecessary codes from TIMERS.
- Reduce the Strings sizes... to 128, 64, 32, 8 or less. (if possible)
- Sometimes releasing/freeing Long strings(like 1024, 2048...) may helps.
- Convert Public functions to local. (if they are not used in Timers/Callbacks)
- Remove Duplicated codes.
- Try to use FOREACH instead of FOR. (it's faster and improved)
- Try to use ZCMD/IZCMD instead of DCMD and SAMP's callback.
- Delete the log files and remake them.
- Reduce unused/non-rp objects from your maps.
- When writing commands, FIRST you must check if player has Perm to use it, THEN make/set the variables. (such strings)
- Update your plugins and includes.
- Remove Duplicated Objects from your maps.
- Set the "MAX_PLAYERS" to real capacity.
- Remove unused DEFINES from your codes.
and such improvements...
Reply


Messages In This Thread
Server optimization - by bostonrooted - 02.02.2020, 13:17
Re: Server optimization - by Markski - 02.02.2020, 14:12
Re: Server optimization - by bostonrooted - 02.02.2020, 14:25
Re: Server optimization - by Symon - 02.02.2020, 16:48
Re: Server optimization - by Uberanwar - 03.02.2020, 05:10
Re: Server optimization - by OsmanMalagic - 03.02.2020, 06:23

Forum Jump:


Users browsing this thread: 1 Guest(s)