Flags for sending game data with direct play
hello, when i use the send function to send game data, what flags should i use? I used DPNSEND_SYNC | DPNSEND_NOLOOPBACK but it runs very slow (1-4 FPS) What should I set the flags to? thanks
Im guessing that your sending data in a tight game loop, calling it several hundred times per second, and thus flooding your queue.
Try scaling your send calls to 30 per second max and it will "play nice"
Try scaling your send calls to 30 per second max and it will "play nice"
"Let Us Now Try Liberty"-- Frederick Bastiat
Yes, when i turn off rendering, the game server tries to send data at 20000+ per second. I changed it and it is working fine now, thanks :)
[Edited by - Estok on July 3, 2004 3:59:56 PM]
[Edited by - Estok on July 3, 2004 3:59:56 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement