For-Loop vs Broadcast

default0default0 disse

a muito tempo atrás | Texto #1
Hi.

Im having a question about performance of the gameserver:

So, Im sending stuff from a client to a server.
And now that stuff should be send to any other player in order to sync up.
Which version of those two here costs more performance:



Or



Notes:
m.GetString(0) -> Contains the data I want to send
m.GetInteger(1) -> Contains the player ID which this affects

Hope some1 can answer this question as Im not sure which way eats up more performance (and this code will be executed very often on my server...).

Best regards

Cyclone103Cyclone103 disse

a muito tempo atrás | Texto #2
I'd use broadcast personally.

Responder para a discussão

Registre-se agora para responder

Nonojogos

nonojogos.com é um site independente de jogos onde você pode jogar tanto jogos de um jogador ou de múltiplos jogadores gratuitamente.

Ferramentas para Desenvolvedor

Se você for um desenvolvedor de jogos em flash, temos algumas ferramentas impressionantes para ajudar você a criar jogos ainda melhores.

Melhores jogos

Porque não experimentar alguns dos melhores jogos online em flash que temos, completamente gratuito?

Copyright ©2007-2012 Nonojogos™ - All rights reserved.342.0195ms on SERVER34097