I have a problem with Dial up conection and messages lost.
I am programing a MMORPG,
The program is using DirectX 8.1 / Directplay.
I sent the info for each enemy in a message that its size is 18 bytes.
1 message is sent for each animal each cycle ( 250 ms )sometimes there are 10-20 animals that need to be sent.
This work pretty solid with broadband. But when i am using Dial-up conection ( 56.6k modem ) there is a 70% Messages lost with more than 3 animals.
This is the code i use to send the messages to the clients.
DPNHANDLE hAsync;
g_pDPServer->SendTo( dpnidPlayer, bufferDesc, 1, 250, NULL, &hAsync, DPNSEND_NONSEQUENTIAL | DPNSEND_NOLOOPBACK | DPNSEND_GUARANTEED );
I already tried :
- Reduce the message ( it sized 32 bytes )
- Send no more than 4 messages each cycle
- Clear the queue of messages each cycle using "CancelAsyncOperation"
- Set different "time out" timer
- Using diferent combinations of flags.
I wonder if i can get some help here.
Tnx in advance for ur time reading, hope u can help me.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement