-
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.
-
Senior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|