Sign In
MSDN Blogs
Microsoft Blog Images
More ...
Shawn Hargreaves Blog
December, 2007
Links
Shawn's Homepage
Twitter @shawnhargreaves
Common Tasks
Blog Home
Email Blog Author
RSS for posts
RSS for comments
Legal
using Microsoft.Disclaimer;
Disclaim("This is my blog");
Disclaim("I am not Microsoft");
Disclaim("I speak for myself");
Disclaim("All rights reserved");
Index
Categorized index of old blog posts
Recent Posts
Network compression: arithmetic encoding
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
Network compression: bitfields
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
Network compression: packed vectors
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
Network compression: quantization
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
Network compression
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
Archives
Archives
January 2012
(2)
December 2011
(3)
November 2011
(2)
October 2011
(6)
July 2011
(2)
June 2011
(1)
May 2011
(3)
April 2011
(10)
March 2011
(6)
February 2011
(3)
January 2011
(3)
December 2010
(6)
November 2010
(8)
October 2010
(9)
September 2010
(14)
August 2010
(5)
July 2010
(9)
June 2010
(6)
May 2010
(7)
April 2010
(14)
March 2010
(17)
February 2010
(11)
January 2010
(2)
December 2009
(4)
November 2009
(5)
October 2009
(4)
September 2009
(3)
August 2009
(3)
July 2009
(8)
June 2009
(15)
May 2009
(9)
April 2009
(6)
March 2009
(6)
February 2009
(5)
January 2009
(5)
December 2008
(5)
November 2008
(5)
October 2008
(6)
September 2008
(9)
August 2008
(8)
July 2008
(4)
June 2008
(3)
May 2008
(6)
April 2008
(9)
March 2008
(4)
February 2008
(2)
January 2008
(4)
December 2007
(12)
November 2007
(6)
October 2007
(6)
September 2007
(7)
August 2007
(4)
July 2007
(7)
June 2007
(6)
May 2007
(5)
April 2007
(11)
March 2007
(18)
February 2007
(3)
January 2007
(9)
December 2006
(14)
November 2006
(8)
September 2006
(3)
August 2006
(7)
MSDN Blogs
>
Shawn Hargreaves Blog
>
December, 2007
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Shawn Hargreaves Blog
Network compression: arithmetic encoding
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
3
Comments
Arithmetic encoding is one of those obscure tools that is rarely used, but every now and then is the only thing that can do the job. It's the oddly sized Allen-key of network data compression. Arithmetic encoding is cool because not many people have heard...
Shawn Hargreaves Blog
Network compression: bitfields
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
3
Comments
Bitfields are just like this most totally awesome old-skool way of packing data, dude! C# programmers rarely have an excuse to mess with such things, but network packet compression offers an excuse par excellence, so let us mess away. A byte is 8 bits...
Shawn Hargreaves Blog
Network compression: packed vectors
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
1
Comments
The Microsoft.Xna.Framework.Graphics.PackedVector namespace contains types that could be described as "quantization for lazy people". This functionality was originally designed for packing textures and vertex buffers into smaller GPU formats, but is equally...
Shawn Hargreaves Blog
Network compression: quantization
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
2
Comments
Fewer bits take up less space than more bits. If you have a number that you know will always be in the range 0-100, there is no need to send a 4 byte integer over the wire. Cast it to a byte first. Sometimes you can reduce the necessary range by offsetting...
Shawn Hargreaves Blog
Network compression
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
0
Comments
Because network bandwidth is so limited, it is critically important to compress all the data you send over the wire. Generalized compression algorithms like zip don't tend to be much use here. To get good results, that kind of compression needs a reasonably...
Shawn Hargreaves Blog
Network bandwidth: voice
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
8
Comments
Bandwidth is needed for more things than just the data you send yourself. The XNA Framework handles voice automatically, but every time you speak into the headset, we have to send that data out over the wire. The voice stream is heavily compressed...
Shawn Hargreaves Blog
Network bandwidth: packet headers
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
5
Comments
Network bandwidth refers to how much data you have room to send over the wire. As you approach the limit, you will see increased amounts of packet loss. If you go over the limit, you will eventually get disconnected from your session. The XNA Framework...
Shawn Hargreaves Blog
Network packet loss
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
0
Comments
Networks are not reliable. When you send a data packet, many things can happen: It might arrive at the other end. It might never arrive. Packets might arrive, but in a different order to how you sent them. Packets might arrive, but their...
Shawn Hargreaves Blog
Network latency
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
2
Comments
"The time has come", the Walrus said, "to talk of networking "... The network game programmer has three mortal enemies: Latency makes your data arrive late Packet loss makes some data not arrive at all Bandwidth limits how much data you can send I shall...
Shawn Hargreaves Blog
Why do people hate Wikipedia?
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
7
Comments
To celebrate the release of XNA Game Studio 2.0 , I'm going to write about something completely unrelated. I'm getting increasingly fed up with reading articles dissing Wikipedia. For some reason its very existence makes some people (who mostly seem to...
Shawn Hargreaves Blog
Virtualizing the GraphicsDevice in XNA Game Studio 2.0
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
8
Comments
In the 2.0 XNA Framework, we virtualized the graphics device. That sounds pretty cool, huh? But what does it actually mean, and why should you care? In summary, you no longer have to care about a bunch of stuff you used to have to care about. You can...
Shawn Hargreaves Blog
The Internet is a funny thing
Posted
over 5 years ago
by
Shawn Hargreaves - MSFT
3
Comments
I recently discovered that my colleague Nazeeh ElDirghami has his own blog . And not just any blog, but one full of actual posts about actual XNA stuff! Weird how you can work with someone for ages, yet totally fail to notice what their virtual alter...
Page 1 of 1 (12 items)