If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
sanctus2099
Posts: 18 Joined: Sat Nov 17, 2007 11:34 am
Post
by sanctus2099 » Fri Nov 30, 2007 10:32 am
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
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Fri Nov 30, 2007 11:31 am
RakNet's RPC mechanism is quite neat. Are you using that?
Perhaps if you post some sample code, we could suggest specific improvements.
psyco001
Posts: 10 Joined: Mon Oct 29, 2007 11:20 am
Location: Germany
Contact:
Post
by psyco001 » Fri Nov 30, 2007 1:07 pm
rpc is a bit slow to handle such networking stuff.
read the tutorials from raknet on rakkarsoft.com and use bitstreams
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Fri Nov 30, 2007 3:46 pm
In what way is RakNet's RPC mechanism slower than doing a big switch() / if() yourself? Have you looked at the implementation?
psyco001
Posts: 10 Joined: Mon Oct 29, 2007 11:20 am
Location: Germany
Contact:
Post
by psyco001 » Sun Dec 02, 2007 9:41 am
no i haven`t looked into implementation, I`ve tested and used the RPC and Bitstream parts of raknet.
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Sun Dec 02, 2007 10:18 am
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.
psyco001
Posts: 10 Joined: Mon Oct 29, 2007 11:20 am
Location: Germany
Contact:
Post
by psyco001 » Sun Dec 02, 2007 10:42 am
hmm i don't know how to explain.
I mean i can hanlde more packets per second when i use bitstreams.
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Sun Dec 02, 2007 7:14 pm
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?
psyco001
Posts: 10 Joined: Mon Oct 29, 2007 11:20 am
Location: Germany
Contact:
Post
by psyco001 » Tue Dec 04, 2007 11:03 am
bitstream was 2 times faster when i've used it for practice.
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Tue Dec 04, 2007 12:38 pm
That's... astonishing. Thanks, I'll be sure to look into that.