alvyxaz / barebones-masterserver

Master Server framework for Unity
475 stars 106 forks source link

MaterServer Optimization?? #221

Open thientvimo opened 5 years ago

thientvimo commented 5 years ago

at the moment the MasterServer and GameServer are using lots of server CPU resource?? is there anybody help me to solve this problem ??

obsi22 commented 5 years ago

How defined server to your game ? You use VDS or VPS server ?

Freebase394 commented 5 years ago

For mee its seems Ok! reasonable for mee!| 13 clients on same computer and im runing a server on a VM(VMWare Workstation Pro 15) with Ubunto on a diferent LAN IP for me simulating a Public IP,--> My litle Baby VM(server) with 1vCore and 2 Gb of RAM.... and the result is that I dont know very well if is goog or bad bat seems reasoable! https://gyazo.com/00c7632ed877b68f089d8b7ba31c4bcf My Machine Setup: https://gyazo.com/8a7ad789c48b27dff25bb202c1e6a944 Amd my physical machine with 13 clients running like that! https://gyazo.com/85e98610f823385cb821bbd50824b768 dont forget my pc ru7nning in medium frecuence arround a 18%/25% A my normal consuption of all clients: https://i.gyazo.com/db4e18e99d2179346b31a7a2231370a2.png

thientvimo commented 5 years ago

How defined server to your game ? You use VDS or VPS server ?

I used Linux VPS, but seems not ok. so we decided change to use Photon

thientvimo commented 5 years ago

For mee its seems Ok! reasonable for mee!| 13 clients on same computer and im runing a server on a VM(VMWare Workstation Pro 15) with Ubunto on a diferent LAN IP for me simulating a Public IP,--> My litle Baby VM(server) with 1vCore and 2 Gb of RAM.... and the result is that I dont know very well if is goog or bad bat seems reasoable! https://gyazo.com/00c7632ed877b68f089d8b7ba31c4bcf My Machine Setup: https://gyazo.com/8a7ad789c48b27dff25bb202c1e6a944 Amd my physical machine with 13 clients running like that! https://gyazo.com/85e98610f823385cb821bbd50824b768 dont forget my pc ru7nning in medium frecuence arround a 18%/25% A my normal consuption of all clients: https://i.gyazo.com/db4e18e99d2179346b31a7a2231370a2.png

how did you optimize building masterserver and gameserver?

Avatarchik commented 5 years ago

Hi! See here https://github.com/alvyxaz/barebones-masterserver/wiki/Performance-Considerations

thientvimo commented 5 years ago

thanks

Freebase394 commented 5 years ago

ow did you optimize building masterserver and gameserver?

I didn´´t make any editions on code! only copyPaste