For-Loop vs Broadcast

default0default0 berkata

lama dahulu | Post #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 berkata

lama dahulu | Post #2
I'd use broadcast personally.

Balas ke thread

Daftar sekarang untuk membalas thread

Mainsini

mainsini.com adalah situs game indie dimana anda bisa bermain game secara single ataupun multiplayer dengan gratis.

Tools untuk Developer

Jika anda adalah game developer flash, kami punya tools istimewa yang bisa membantu anda membuat game yang lebih keren.

Game Keren

Mainkan game flash online terbaik kami, Sepenuhnya gratis. Tunggu apa lagi?

Copyright ©2007-2012 Mainsini™ - All rights reserved.35.002ms on SERVER34097