Jump to content

  • Log In with Google      Sign In   
  • Create Account

Delta Compression of Structs


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 gimp   Members   -  Reputation: 142

Like
Likes
Like

Posted 12 April 2000 - 07:38 PM

I was reading through the Q3 source and notice a reference to Struct delta compression. I was wondering if there is anything more to this than keeping copied of the ''before'' struct comparing then filling the new struct up with NULL''s(for all bit the same) before sending.. Also, do you more experinced guy''s generally use ''general'' compression on your delta compressed data to further reduce the bytes sent? Thanks Chris ''gimp'' Brodie

Sponsor:

#2 DavidRM   Members   -  Reputation: 270

Like
Likes
Like

Posted 13 April 2000 - 06:16 AM

We use the zlib compression for server-to-client "batch" transmissions. We generally get about 40%-60% compression. Seems to work well enough.


DavidRM
Samu Games


#3 gimp   Members   -  Reputation: 142

Like
Likes
Like

Posted 19 April 2000 - 12:47 PM

Thanks.

On thinking about it a bit more all the other clinets in a game really need to know about me is changes that I make to my base state.. so I can probably get away with some basic strings of preformatted data, with data reduction and then compression.

I''m still interested to understand the reason that carmack used delta compression on his q3 game structs. Or at least thats what his commented code say.

I''d be inclined to just come up with a messaging system that both client and server understand (like first 4 bits denote the message type which allows the destination to what to do with the data (and how to expand the data reduction method. ) If I wanted to use massive structs in the game like all the quakes do then I''d just have a translation laver that pulls the important stuff out of the struct and shoves it in to these custom messages.

Maybe that''s what he did and I misunderstood his code comments...

humm...




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS