PDA

View Full Version : sync problem between clients


webreake
02-08-2008, 07:19 AM
hi
im using red5 to create a chat but currently im having problems with sync between clients , you can see a video demo here : multiuserChat (http://www.masgdl.com/lab/multiuser-red5.html)

the demo runs ok because all the clients are running locally but when someone with a very slow computer connects the frame rates for that client are slow compared to a client with a new computer and the result is that some penguins move faster than others (better computer better performance in the swf)

so how can i control this ??

some of my vars that might be of relevance :
aceleration =.5
maxSpeed =15

thanks

javiadas
02-16-2008, 12:40 AM
i have the same problem with a similar app.
i have a racing game, but when i connect more than 5 clients with their car.
tha onsync sucks....

hope someone can help us..

webreake
02-22-2008, 12:30 AM
javiadas
does your problem is like in multiplayer games is called "lag" ?
some cars are in some point and next second at other position far away ?

to fix that i used tween prototype so instead of
car1._x=100
i do
car1.tween("_x",100,"linear")

that way the movement is continuous and there is no jumps hope it helps you.

im still trying to fix my problem.

javiadas
02-22-2008, 05:50 PM
thanks, for your help...
well i have used something like so.setFPS()

that way i send the variables in an interval of time for example if i set this to so.setFPS(5) that means that i send 5 times the sharedobject in 1 second.

because something that happen to me is that sometimes the sharedobject disappear, i think because some data collision.