Skip to main content
Participant
February 5, 2009
Question

Facebook Flash App - How to fix lag?

  • February 5, 2009
  • 1 reply
  • 1673 views
I'm working on a Facebook/Myspace app, we were coding it in Flash, I'm not too experienced myself so I hired a team to help with it. A few weeks ago they said it looked like it would lag due to the fact that it's a multiplayer game where 4 players can play with each other in a single screen and interact with each other, and other people can also join ongoing games to spectate. They said I needed to use UDP rather than TCP because TCP would lag. However, Flash + UDP looks like it could be a problem:

quote:

Just want to let you know that we did a research on all the possibilities available concerning the Flash Action Scripting Platform. The first one to go with is of course the Flash Media Interactive server itself as for now its the only platform that supports UDP with Flash. Now there are two ways to get along with it, one way is to purchase the Flash Media Interactive server ( that costs US$ 4,500 ) and have it installed on any linux server.

The second option is to obtain a dedicated Flash Media hosting service, through the given url you can check the some of the reliable Hosting Servers as recommended by Adobe itself. Despite of this let me mention it again that the RTMFP the UDP protocol is still limited and going through an evolution as they mentioned it their official release documentation of Flash 10 (Release Notes RTMFP FAQS). And apart from Flash Media Interactive Server, none of the alternatives support UDP with Flash. (i.e; Smartfox, Red5 & ElectroServer)


I'm not very familiar with much of the stuff mentioned in the quote above (message I got from the team this morning) so I wanted to get your opinions on whether any of these are good options. I'm not looking to spend another $4,500 so that basically rules out the first option.

Alternatively, I could rip the entire thing and redo it in Java, which would probably be able to handle it ... right? Any thoughts would be appreciated.
    This topic has been closed for replies.

    1 reply

    February 5, 2009
    Yes, it is valid that their might be a lag due to TCP. However, in a good network both TCP & UDP based solution should provide same experience.

    RTMFP is still in experimental stages and there is no announcement regarding its public release date. which means that currently no available version of FMS (including FMIS) supports RTMFP.