GPWiki.org
GPWiki.org
It is currently Sat May 18, 2013 2:42 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Compression for MMORPG
PostPosted: Sat Sep 24, 2011 4:29 am 
Level 1 Cleric

Joined: Wed Sep 21, 2011 3:14 am
Posts: 10
In a MMORRPG, there is a lot of data exchanged between the server and clients. I am wondering if I should compress this data before sending it over a tcp connection. It greatly reduces the size of the data, I am just wondering if it is efficient. Would it use too many resources on the server side?


Top
 Profile  
 
PostPosted: Sat Sep 24, 2011 6:19 am 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3802
Location: Ferriday, LA, US
I suppose (being that I haven't actually gone down that road) that it would shift the strain from the networking part of the equation over the processing. The more you compress the data -- or the more often you have to compress things -- the harder the CPUs have to run.

I would suggest planning your data formats to compensate for this, and use the smallest amounts of data possible, wherever possible. The only thing that probably wouldn't benefit from this approach is for text chat and whatnot... but for things like position data and the like, it would be better to use a binary or bytecode method over something more bloated (like XML or JSON, for example).

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Sat Sep 24, 2011 7:30 am 
Dexterous Droid
User avatar

Joined: Wed Aug 18, 2004 7:40 pm
Posts: 3735
Location: South Africa
Pretty sure the general answer is: don't compress. It takes too long and too much processing power. Better to forgo the compression and get the data to the other end with lower latency than try to save bandwidth by compressing the data first. If you're going over your bandwidth budget you should reconsider what you're sending through the pipes, try and pack the information better and not send superfluous information. This would apply to all multi-player games, not just MMORPGs.

_________________
Whatever the mind can conceive and believe, it can achieve


Top
 Profile  
 
PostPosted: Sun Sep 25, 2011 1:08 am 
King Code Monkey
User avatar

Joined: Wed Sep 01, 2004 3:05 pm
Posts: 11182
Location: Abingdon, MD
Have to agree with Igthorn. The time spent compressing and decompressing isn't worth the savings in packet size. Most of your packets are going to be very small anyway - movement and actions which will be maybe a byte or two.

_________________
Bored? Head on over to my blog and see what I'm up to.

Microsoft XNA MVP


Top
 Profile  
 
PostPosted: Sun Sep 25, 2011 2:37 am 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3802
Location: Ferriday, LA, US
Machaira wrote:
Have to agree with Igthorn.


IGTHORN said what I said, he just worded it better... :rolleyes

Also, Machaira is a booger-head.

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Sun Sep 25, 2011 12:33 pm 
King Code Monkey
User avatar

Joined: Wed Sep 01, 2004 3:05 pm
Posts: 11182
Location: Abingdon, MD
I agree with all the above posts. :) :lol

_________________
Bored? Head on over to my blog and see what I'm up to.

Microsoft XNA MVP


Top
 Profile  
 
PostPosted: Sun Sep 25, 2011 2:30 pm 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3802
Location: Ferriday, LA, US
Machaira wrote:
I agree with all the above posts. :) :lol


rotInMilc wrote:
Also, Machaira is a booger-head.


:eek

;)

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Sun Sep 25, 2011 2:57 pm 
Bibliotherapist
User avatar

Joined: Wed Nov 03, 2004 1:28 pm
Posts: 6698
Location: Lincoln, Englandshire
LOL Ninja post editing skillz.

_________________
10 PRINT "Bad Monkey ";
20 GOTO 10


Top
 Profile  
 
PostPosted: Sun Sep 25, 2011 8:26 pm 
King Code Monkey
User avatar

Joined: Wed Sep 01, 2004 3:05 pm
Posts: 11182
Location: Abingdon, MD
I've been called worse. :lol

_________________
Bored? Head on over to my blog and see what I'm up to.

Microsoft XNA MVP


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group