SA-MP Forums Archive
Gamemode optimisation - 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: Gamemode optimisation (/showthread.php?tid=650968)



Gamemode optimisation - IdonTmiss - 10.03.2018

Soo yeah, i have a pretty big gamemode with lots of maps which im going to remove like all of them and add them one by one or atleast the ones i need, so yeah im using Y_INI, and there are other servers with lots of maps and lots of texture on their maps but their server doesn't lag, i think their using MySQL is it any different i know it is better for loading accounts and stuff but server-lag mybe my sync is bad or w.e

- Can anyone help


Re: Gamemode optimisation - Sithis - 10.03.2018

You literally gave us no info at all. Do you use streamer? How many objects are you spawning?


Re: Gamemode optimisation - IdonTmiss - 10.03.2018

Quote:
Originally Posted by Sithis
Посмотреть сообщение
You literally gave us no info at all. Do you use streamer? How many objects are you spawning?
I use streamer and Over 20899 objects and textures u need smth else?


Re: Gamemode optimisation - PepsiCola23 - 10.03.2018

dont load too many objects in the same exact time ( example : dont try to teleport a player in the middle of the map where there are 25000 objects )


Re: Gamemode optimisation - IdonTmiss - 10.03.2018

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
dont load too many objects in the same exact time ( example : dont try to teleport a player in the middle of the map where there are 25000 objects )
i know but the real problem is shooting when i hit a player it usually doesn't register, and stuff


Re: Gamemode optimisation - AmigaBlizzard - 10.03.2018

Using Y_INI or MySQL won't make any difference to lag on your server.
Once the gamemode is loaded and your maps are loaded, the objects reside in the memory of the server.
The only difference in speed when using either Y_INI or MySQL, is the loading speed of your gamemode and only happens when you (re)start your server.

Lag only appears when you have too many objects in range.
Your server needs to transmit all object-related data to the client to make the objects appear on your player's screen, and if there are too many objects, the data-stream is so large that this appears as lag, because no other data is being transmitted at that time like player-positioning data and vehicle-data and lots of other data.


Re: Gamemode optimisation - Viggo - 11.03.2018

Streamer would help to have less objects created on the server in the same time, like, if no objects are streamed by players, the server won't need to load any, server loads needed objects and removes them when they're streamed out.

If you understand how Streamer works, you'll know how it's gonna help.


Re: Gamemode optimisation - IdonTmiss - 11.03.2018

Quote:
Originally Posted by Viggo
Посмотреть сообщение
Streamer would help to have less objects created on the server in the same time, like, if no objects are streamed by players, the server won't need to load any, server loads needed objects and removes them when they're streamed out.

If you understand how Streamer works, you'll know how it's gonna help.
I use this
Код:
stream_distance 300.0
stream_rate 1000
i think thats good right?