Page 1 of 1

MMORPG messages

Posted: Fri Nov 30, 2007 10:32 am
by sanctus2099
Okay so this is not very much Irrlcht related...
I'm trying to make a MMORPG using Irrlicht and Raknet.
Its going preety well but I'm not shure my way of getting messages from the server and vice-versa is the best. I'm using a lot of if's and message indentifiers and stuff like that.
Do any of you know some books/sites that might help me out?
And please don't tell me I need more experience. I've been programming games for a lot of time...(altough I'm new to Irrlicht and RakNet)
Thank you :)

Posted: Fri Nov 30, 2007 11:31 am
by rogerborg
RakNet's RPC mechanism is quite neat. Are you using that?

Perhaps if you post some sample code, we could suggest specific improvements.

Posted: Fri Nov 30, 2007 1:07 pm
by psyco001
rpc is a bit slow to handle such networking stuff.

read the tutorials from raknet on rakkarsoft.com and use bitstreams

Posted: Fri Nov 30, 2007 3:46 pm
by rogerborg
In what way is RakNet's RPC mechanism slower than doing a big switch() / if() yourself? Have you looked at the implementation?

Posted: Sun Dec 02, 2007 9:41 am
by psyco001
no i haven`t looked into implementation, I`ve tested and used the RPC and Bitstream parts of raknet.

Posted: Sun Dec 02, 2007 10:18 am
by rogerborg
Can you be a bit more specific about how RakNet RPC is "a bit slow"? I'm really not sure what would lead you that conclusion, or what metric you're using.

Posted: Sun Dec 02, 2007 10:42 am
by psyco001
hmm i don't know how to explain.
I mean i can hanlde more packets per second when i use bitstreams.

Posted: Sun Dec 02, 2007 7:14 pm
by rogerborg
psyco001 wrote:hmm i don't know how to explain.
I mean i can hanlde more packets per second when i use bitstreams.
How many more?

Posted: Tue Dec 04, 2007 11:03 am
by psyco001
bitstream was 2 times faster when i've used it for practice.

Posted: Tue Dec 04, 2007 12:38 pm
by rogerborg
That's... astonishing. Thanks, I'll be sure to look into that.