Directplay Questions
First I have a question about directplay''s GetConnectionInfo method, as MSDN is pretty vague on it. Mainly how does it magically come up with the ping? Does it send a packet everytime I call this function? or is it keeping track of things inside its obfuscated packet headers? Is it a reliable function to use, rather than come up with my own scheme to find the ping?
The second question is a little more vague and is sort of a problem i ran into while messing with Dp8Sim, that lets you fake packetloss and high ping. My simple test program would just die whenever i set it 10 percent packetloss on both sides (recieving and sending) I can''t quite figure out why. The test program just has one client that sends a destination whenever you click, and a server that sends data on the circle''s position and destination every 500 ms. I thought that since i''m setting the DPNSEND_NOLOOPBACK, DPNSEND_NOCOMPLETE and DPNSEND_NONSEQUENTIAL flags, that i would be sending the equivalent of UDP packet every time, so if it didn''t show up, no harm done, you''ll get another in the next 500 ms, so nothing should be piling up.
Now that i think about these two could be related since i''m calling GetConnectionInfo to find my ping, so i can attempt a form of dead reckoning. If it *is* sending packets, that could be the problem.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement