Code2Design.com

User login

Programming

The Layout

Navigation

Popular content

Resources

Who's online

There are currently 0 users and 5 guests online.

I am doing a xmlSocket server stuff right now

Ok, I am making some pretty good multiplayer flash apps right now. Funny thing is that everything involved in it (except the initial transfer of the data between client to server & server to clients) is client side coding.

I have made a database replacement (most proud and annoying part to make, took 2023 lines of as3 so far but it saves every bit of data received that is worth saving directly to my computer using shared objects), username & password login/signup, a character creation/selection screen, complete chat (well I want to add some stuff to it), and moveable avatars that are viewable to all other users connected.

And as I said, all of this is created client-side as3(talk about wasting your life for the past 3 years on flash eh?). I am having one problem though right now. And it is every programmers enemy. LAG! For some reason I can't seem to be able to handle more than 5 connections at a time (I am assume a constant loop of sending user data to server is too much maybe). I personally am considering to make a way of adding a new data handler for every connection to the game area. By the way, I am separating the game into 3 servers right now. Will make it 2 as soon I feel like adding the sign up the right way. But now I am confused on how to handle more than 5 connections to the game/chat area of my app.

Anyone got any ideas on how to solve this lag problem?!


Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <br /> <h3>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use BBCode tags in the text, URLs will be automatically converted to links
More information about formatting options



Like what you see?

Why not add more? C2D is looking for other Christian Web Masters who would like to help write articles for this site. If you have expericance in FLASH, CSS/HTML, PHP/MySQL, PhotoShop/GIMP, Blender, Javascript, or just General Design - our users would love to hear what you have to say. Contact Us

delicious   digg   reddit   magnoliacom   newsvine   furl   google   yahoo   technorati