What data-structure/algorithm will allow me to send a list of key/value dictionaries using the least amount of bits?

Posted by user12365 on Game Development See other posts from Game Development or by user12365
Published on 2012-10-22T11:09:10Z Indexed on 2012/10/22 11:19 UTC
Read the original article Hit count: 229

I have server objects that have corresponding client objects. The data to be kept in sync is inside the server object's key/value dictionary. To keep the client objects in sync with the sever objects, I want the server to send the key/value dictionary every frame for each object.

What data-structure/algorithm will allow me to send a list of key/value dictionaries using the least amount of bits?

Bonus constraint 1: For each type of object, the values of some keys change more often than others. Bonus constraint 2: Memory usage on the server side is relatively expensive.

© Game Development or respective owner

Related posts about networking

Related posts about multiplayer