Mirage Source http://miragesource.net/forums/ |
|
Reduce Packet Lag... Add a Packet Bufferi http://miragesource.net/forums/viewtopic.php?f=210&t=894 |
Page 2 of 2 |
Author: | Tony [ Tue Dec 09, 2008 11:21 pm ] |
Post subject: | Re: Reduce Packet Lag... Add a Packet Bufferi |
William wrote: Don't use IOCP and don't use a packet buffer. Because? |
Author: | William [ Wed Dec 10, 2008 3:41 pm ] |
Post subject: | Re: Reduce Packet Lag... Add a Packet Bufferi |
IOCP is unstable, and the code verrigan provided isn't fully bug free. And IOCP is supposed to be used on a server with thousands of connections, a ms server is better without it. So just skip it. |
Author: | Asrrin29 [ Wed Dec 10, 2008 10:23 pm ] |
Post subject: | Re: Reduce Packet Lag... Add a Packet Bufferi |
I've had IOCP in my code for over a year and have never had any sort of hang ups with it. granted, I've not had more then 10 people online at a time, but unless I'm missing something there doesn't seem to be a problem. |
Author: | GIAKEN [ Wed Dec 10, 2008 10:53 pm ] |
Post subject: | Re: Reduce Packet Lag... Add a Packet Bufferi |
I took IOCP out of a game because it kept getting out of memory errors and players were always having account online problems and so on. The game has about 20 people on average. |
Author: | William [ Thu Dec 11, 2008 3:37 pm ] |
Post subject: | Re: Reduce Packet Lag... Add a Packet Bufferi |
There are problems with it and GIAKEN has noticed 1 of the problems, people stay logged in. I don't use IOCP anymore and I'm just stating my opinion that it's a bad idea to use it. The game is much more stable without it. |
Author: | Tony [ Thu Dec 11, 2008 5:26 pm ] |
Post subject: | Re: Reduce Packet Lag... Add a Packet Bufferi |
William wrote: There are problems with it and GIAKEN has noticed 1 of the problems, people stay logged in. I don't use IOCP anymore and I'm just stating my opinion that it's a bad idea to use it. The game is much more stable without it. Oh okay, but what about disabling the nagle algorithm and using packet buffering? |
Author: | William [ Thu Dec 11, 2008 5:46 pm ] |
Post subject: | Re: Reduce Packet Lag... Add a Packet Bufferi |
Sure you can do that, but you won't gain anything on it. The code he is providing is more like a base packet buffer. I wouldn't use it, nagling is fine. |
Page 2 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |