Response MSG
Options
Hello I'm using photon server as my game server but I want to know a maximum size of object that i can send in 1 msg response back to client
For example
I want to send Back Dictionary pattern like
Dictionary<int, Dictionary<int, Dictionary<string, object>>>
Can i do it or i have to use other way?
Thx
For example
I want to send Back Dictionary pattern like
Dictionary<int, Dictionary<int, Dictionary<string, object>>>
Can i do it or i have to use other way?
Thx
0
Comments
-
Hi,
you can do that, yes.
The max size of a single data type is listed here:
http://doc.exitgames.com/en/onpremise/c ... y-protocol
Per default, the MaxMessageSize is 512000 byte. You can increase that by setting the MaxMessageSize attribute in the PhotonServer.config (either on the "instance" element or per listener): http://doc.exitgames.com/en/onpremise/c ... g-settings
However, Photon is optimized for lots of small messages (instead of a few large ones), and clients are overloaded easily by large messages, so you might see disconnects and lag.
You should absolutely avoid to send large amounts of data and keep all your messages as small as possible.0 -
Thx for the information0