How SmartFox update a large Room Variable between client and Server?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

crimsonfantasy
Posts: 13
Joined: 21 Feb 2018, 03:02

How SmartFox update a large Room Variable between client and Server?

Postby crimsonfantasy » 09 Aug 2018, 23:56

Hello, Smart Fox Server:
If I have a Room Variable that contains a large SfsObject. The large SfsObject means it have many key/value in this.
I am concerning that real network package size when transferring to client.
If I update only one key's mapping value, How SmartFox update this?
Does SmartFox perform dirty check. Do only send update key-value to client? Or using other methodology?
If I want to minimize network package size, is there a guildline for design structure for SfsObject ?
Thank you.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How SmartFox update a large Room Variable between client and Server?

Postby Lapo » 10 Aug 2018, 08:15

Hi,
no it doesn't perform dirty checks at object level. It would take too much work on the server side as traffic increases.

Keep in mind that the protocol compresses data so if you keep your objects reasonably small you might just need a few KBs of data transfer to update a pretty big SFSObject.

You can check the actual size on the client side, if you activate the debug flag of the API.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Stevenor and 45 guests