A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: xmlSocket server speed up?

  1. #1
    Senior Member
    Join Date
    Sep 2008
    Posts
    100

    xmlSocket server speed up?

    Ok I am making a multiplayer game using flash and an xml socket server. I am encoding bytearrays that have objects written to them to strings using Base64 class and sending that string over the server.

    It works fine on an onEnterframe loop until I have 6 users logged in. All the users start to lag when I have more than five in. Does anyone have suggestion on how I would be able to handle are fairly large amount of connections and still maintain a good speed? 100 connections at least would be nice.

  2. #2
    Senior Member catapop's Avatar
    Join Date
    Nov 2005
    Posts
    114
    hi. try to send as less info as you can. for example if you move an object from position x to position y don't send the information everytime the frame refresh. send something like
    movePosition(x,y) and you send again to server if he changes the position, if not don;t send anything. also you have to synchronize the players. see their connection speed.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center