Gamemode optimisation
#1

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
Reply
#2

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

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?
Reply
#4

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 )
Reply
#5

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
Reply
#6

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.
Reply
#7

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.
Reply
#8

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)