The Forums Are Now Closed!

The content will remain as a historical reference, thank you.

Flow control?

By on May 13, 2009 1:52:52 PM from JoeUser Forums JoeUser Forums

One of the things we’ve been struggling with, even since the beta, when it comes to match making is the seemingly exponential server requirements for match making.  That’s why when we’d release a beta things would be peachy and then they’d go to the public, it would fall apart.

Well, yesterday they finally found the issue deep deep in one of the licensed network libraries was something called flow control. This limits the number of packets that will get processed based on a number of criteria.  There’s good reason for flow control but because this code is a “black box” to us, until we could meet with the developer in person and go through his code, we had no idea that you’d end up with scenarios where a player might only be processing 3 or 4 packets per second.

Believe it or not, 3 or 4 packets per second isn’t necessarily a bad thing in a client/server game. You connect to the server and they send back the connection info. Maybe that connection info is 10k. So it takes a second or two to get that info. It’s not that big of a deal if it’s 1 vs. 1.  It’s not even that big of a deal if it’s 2 vs. 2.

But naturally, in Demigod, people want to to 3 vs. 3 or 4 vs. 4.  And if you do that, well, very bad things start to happen because it starts to back up. You can tell it’s messed up because your connection window will not seem to make sense and it doesn’t – because it’s incredibly outdated.

If you have to get info every few seconds from say 8 people in a lobby, you’re going to quickly get backed up.  Now, until we fix this, you can resolve a lot of this by keeping your games at 2 vs. 2 or maybe 3 vs. 3 if the people in the lobby have decent machines.  It’s fixed on our end but we have to merge the fixed library into our code which, if you’re a developer, you know how carefully that needs to be done, even with version control.

But this problem I just described has been there since the beginning (i.e. February).  The only reason connectivity has gotten better is because we’ve thrown a ridiculous number of servers (I think there’s like 8 servers now dedicated to just handling requests) plus the work we’ve been doing for the past 2 weeks has been improving things.

BTW, the only reason why the day 0 update worked better for some people than the most recent release is because the day 0 update used NAT and that’s a lot slower (so a lot fewer messages). The faster the system, the more it aggravates this.

I’m going to ask our technology architect to do a write up on this once this is fixed.  I am heading back to doing more testing scenarios.

I plan to also write up an article on how games are made so people can get a better idea of how this sort of thing can happen in a major commercial game in the first place.

+912 Karma | 42 Replies
May 13, 2009 2:00:20 PM from Demigod Forums Demigod Forums

Most developers / publishers would never come forward with this type of information to the public.  As always, appreciate the update.

May 13, 2009 2:22:10 PM from Demigod Forums Demigod Forums

As always love the update BUT.... now that this problem was found when will it be fixed? Day? Week? 2 weeks? I am curious because i would really love to start playing the game instead of having to only chose a 2v2 .. or try pantheon w/ drops and AI .

May 13, 2009 2:23:06 PM from Demigod Forums Demigod Forums

I want to go home and do more testing scenarios!!

May 13, 2009 2:23:35 PM from Demigod Forums Demigod Forums

Also Frogboy will this kill Thrusday's update? As in will the proxys not even matter?

May 13, 2009 2:25:09 PM from Stardock Forums Stardock Forums

Sounds like a possible cause of the "spiking" effect. Shame you discovered this after Yarlen pissed me off, already processing the refund!

Maybe when things improve i'll re-purchase. 

May 13, 2009 3:00:44 PM from Demigod Forums Demigod Forums

I prefer a Coriolis meter and a Fisher E body valve for flow control, but that isn't always cost effective.  Sometimes I just settle for an orifice plate + DP cell and a cheaper Masoneilan 21000 or a segmented ball valve.

Have you considered doing this?

May 13, 2009 3:04:07 PM from Stardock Forums Stardock Forums

Thanks for the info update. As you're no doubt aware, the transparency is really what's keeping this situation from getting really out of hand.

Hope things keep looking up.

 

May 13, 2009 3:11:20 PM from Demigod Forums Demigod Forums

Try Kegel exercises.

May 13, 2009 3:11:54 PM from Demigod Forums Demigod Forums

Cool info! i like it! Really appreciated Frogboy! 

May 13, 2009 3:15:46 PM from Demigod Forums Demigod Forums

Quoting Mauxe,
Try Kegel exercises.

L O L

May 13, 2009 3:20:17 PM from Demigod Forums Demigod Forums

Goes to show, always write tests checking conditions in the worst possible scenarios

And of course, that fixing one problem, usually results in revealing another!

May 13, 2009 3:23:43 PM from Demigod Forums Demigod Forums

Im sorry to say ... i dont appreciate this , not that your coming out to tell us , but i really dont feel like playing pantheon aI /drops matches or 2v2 , 3v3 custom games .

 

theres always a new problem coming up , nothing ever gets fixed , so many times have i read your update that says , its going to be fixed in 2-3 days , and now i have more issues then when i bought the game.

 

Im sorry frogboy , but my doubt is spilling up from my gut , problems might have been solved but now i cant play pantheon anymore, without playing with an unfair team every match, and i cant even dream of matches bigger then 3v3 ? , i thought this game was made for 5v5 and the other sized was a nice addition :/ .

 

 6.6 has not been released yet , you still have time , just make that time count man

May 13, 2009 3:45:35 PM from Demigod Forums Demigod Forums


I plan to also write up an article on how games are made so people can get a better idea of how this sort of thing can happen in a major commercial game in the first place.

 

Yes!

Want to read!

Please write!

May 13, 2009 4:15:55 PM from Demigod Forums Demigod Forums

I remember speaking briefly to Frogboy in chat yesterday. Let his be a lesson to you all! Get jobs and invest in better computers!

May 13, 2009 4:38:22 PM from Demigod Forums Demigod Forums

Quoting XSive_Death,
Sounds like a possible cause of the "spiking" effect. Shame you discovered this after Yarlen pissed me off, already processing the refund!

Maybe when things improve i'll re-purchase. 

 

Mmm... I hope this fixes my spiking in 3v3+ games, but I have my doubts, seems completely unrelated.

May 13, 2009 5:03:56 PM from Demigod Forums Demigod Forums

"Licensed network library"? So you actually paid for the piece of code that cost you so much time/money? Oh, the irony...

May 13, 2009 5:41:45 PM from Demigod Forums Demigod Forums

Quoting bug,
"Licensed network library"? So you actually paid for the piece of code that cost you so much time/money? Oh, the irony...

That's common business in the industry

May 13, 2009 5:52:23 PM from Demigod Forums Demigod Forums

Didn't anyone think at some point that hey we could have had a V8.

May 13, 2009 6:16:10 PM from Demigod Forums Demigod Forums

Quoting Gabberkooij,

Quoting bug, reply 16"Licensed network library"? So you actually paid for the piece of code that cost you so much time/money? Oh, the irony...

That's common business in the industry

 

Tell me about it... Jus today we had an issue with some JBoss library not releasing sockets in a timely manner. But at least we don't pay for it and we made sure we check for these problems before releasing.

 

PS No, we're no better than Stardock, we're just working on another stupid webapp so we have it easier.

May 13, 2009 7:22:49 PM from Demigod Forums Demigod Forums

Moral of the story: never license code without having source access!

May 13, 2009 8:03:58 PM from Demigod Forums Demigod Forums

Quoting AngryZealot,
Moral of the story: never license code without having source access!

Quoted and underlined.

 

May 13, 2009 8:16:10 PM from Demigod Forums Demigod Forums

Hmmm...So this was the root of all problems? Maybe it will fix my astronomical lag spikes in >3v3 matches. I hope...

May 13, 2009 8:41:59 PM from Sins of a Solar Empire Forums Sins of a Solar Empire Forums

Moral of the story: never license code without having source access!

 

Its still best to get the original dev involved even if you have the source code. If you are not careful you will end up with a game like Star Wars Galaxies. Putting the   CU/NGE aside for a minute the amount of different people that they have had over the years screwing around with the code have left said code a mess that causes the devs now all kinds of probems.

Often they have no idea what a previous dev has done and when they try to change it it causes a bug or another unintended change some place else.

Thats why its always best to get ahold of the guy that coded it if you can.

May 13, 2009 9:07:16 PM from Demigod Forums Demigod Forums

The license code is raknet.  Their software suck.

 

Looks like no 50% coupon until this gets fixed.

May 13, 2009 9:35:49 PM from Demigod Forums Demigod Forums

Hmmm... And I always thought flow control was on the client side. You learn something new every day...

Stardock Forums v1.0.0.0    #108435  walnut2   Server Load Time: 00:00:00.0000656   Page Render Time:

Stardock Magazine | Register | Online Privacy Policy | Terms of Use

Copyright © 2012 Stardock Entertainment and Gas Powered Games. Demigod is a trademark of Gas Powered Games. All rights reserved. All other trademarks and copyrights are the properties of their respective owners. Windows, the Windows Vista Start button and Xbox 360 are trademarks of the Microsoft group of companies, and 'Games for Windows' and the Windows Vista Start button logo are used under license from Microsoft. © 2012 Advanced Micro Devices, Inc. All rights reserved. AMD, the AMD Arrow logo and combinations thereof are trademarks of Advanced Micro Devices, Inc.