[Red5] Performance question

Debian User testpresta at laposte.net
Thu Apr 9 04:45:38 PDT 2009


Thanks for your answer.

I have a problem with what you said:

When a user is pressing an arrow on his keyboard, i send this 
information to red5 server.
In this case, i don t know how to compute coordonates on red5 server. 
Should i put a thread that will computes coordonnates every seconds on 
red5 server ?

Thanks

Trevor Burton a écrit :
> I'd suggest that rather than returning values from a function you put 
> all your character's positions in a shared object.
>
> send the user input to Red5 (forward back left right fire etc) rather 
> than the raw positions - have the server update their position based 
> on the input. (this helps prevent cheating and helps when you want to 
> make sure positions are correctly synced with the server).
>
> Then update the shared object with your player's positions a few times 
> a second so everyone is updated via the shared object.
>
> I've spent a long time trying out different approaches to this sort of 
> thing with Red5 and this is definately the approach that's capable of 
> handling the most updates per second. It's also pretty easy to set up 
> and to extend once you've got it running.
>
> I've also been playing around with the Remote Shared Objects 
> themselves to create a shared object that doesn't need to update 
> EVERYTHING EVERYTIME. So you'll be able to only update those users 
> that need to know about other users (if user A is on the opposite side 
> of your map to user B then they don't need to receive updates about 
> each other's position). But this isn't complete yet. But feel free to 
> contact me offlist if you want to know more or get some more info.
>
> T
>
> On Thu, Apr 9, 2009 at 7:22 AM, Debian User <testpresta at laposte.net 
> <mailto:testpresta at laposte.net>> wrote:
>
>     Hello
>
>     I am writing a multiplayer game. I have a map with some characters
>     which are seen from top view (like old zelda game).
>     Each character is controled from a flash client with keyboard.
>     I am wondering how i should do to synchronize all character
>     position in real time.
>     Is it a good idea to put code in flash client who will send
>     current character position to red5 server to a red5 remote function ?
>     This function will return all characters positions in order to
>     synchronize flash client.
>
>     May i crash my server if this function is called 5 times by second
>     and if i have 500 flash clients ?
>
>     Thanks
>
>
>     _______________________________________________
>     Red5 mailing list
>     Red5 at osflash.org <mailto:Red5 at osflash.org>
>     http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
> -- 
> Trevor Burton
> http://www.flashmonkey.org
> http://www.paperworld3d.com
> http://www.infrared5.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>   





More information about the Red5 mailing list