Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / (DBPro) Multiplayer speed!

Author
Message
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 29th May 2006 16:19 Edited at: 9th Nov 2007 22:00
Hi,

I've got some working multiplayer( ) code, my only problem is that with only two spheres moving around, it's so very slow...

This is my code:


I'd be very greatful for any help!

That has me so confused.

Attachments

Login to view attachments
Yian
21
Years of Service
User Offline
Joined: 16th Jun 2003
Location: Nicosia, Cyprus(the Greek half)
Posted: 29th May 2006 16:26
you're using 'sleep' all the time,it should look blocky and jumpy...
what you should do is simply send the info every few fractions of a second...

A study done by William Speyer, who was a victim of prison rape in 1989, shows that 34% of [prison] rape victims released from prison become child molestors.
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 29th May 2006 17:51
also the dbpro multiplayer commands are very slow in themselves
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 29th May 2006 19:17
Quote: "you're using 'sleep' all the time,it should look blocky and jumpy...
what you should do is simply send the info every few fractions of a second..."


That's what I tried at first, but it was slower than now.

Quote: "also the dbpro multiplayer commands are very slow in themselves"


Really? Which dll would you suggest?

Thanks for replying so far.

We were all new people once.
DK_
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 29th May 2006 21:14 Edited at: 29th May 2006 21:19
try this:



Everything I changed is in between the commented area.


I took out the 'perform checklist for net players' if you need it, you shouldn't do it every frame. instead do it about every 15-20frames or more. Also, the way you were sending and receiving messages was VERY slow, you had 3 sleep commands EVERY frame, and on top of that you were sending and receiving 3 messages every frame. So I changed it to have NO sleep commands, and it sends and recieves only one message every frame.

Hope that helps.

Available for programming position using DBPro.
Also, good at multiplayer coding, contact at:
laptop5002@hotmail.com
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 29th May 2006 23:41
i tested the code but the

get ip address$()

wasnt highlighted and didnt work, why? do i have to have a plugin for that?

You never fail, only make mistakes.
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 30th May 2006 22:57
Yeah, Slooper, sorry about that, I didn't remember! It's the enhamcements dll. Going to test the code in a minute, DK! Thanks for all the help!

We were all new people once.
RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 1st Jun 2006 02:28
whats the enhacments dll?

Do or do not... there is no try -yoda
cats fit best in a george forman - not yoda

Login to post a reply

Server time is: 2024-11-26 19:41:44
Your offset time is: 2024-11-26 19:41:44