Sorry for double message, but i only noticed this as i clicked sent: Try increasing the channel at which you send the message, up to 254, and then back to 0 (255 is reserved), that may improve your performance.
On Mon, May 4, 2009 at 2:58 PM, Nuno Silva <[email protected]>wrote: > It depends a lot on the message size, for instance. Make sure your packets > are not too big. > > On Mon, May 4, 2009 at 2:14 PM, Jonathan Hodgkinson < > [email protected]> wrote: > >> Hi, >> >> I'm attempting to create a FPS game on the iPhone and Im using Enet for >> the networking, however Im having problems with packets not being sent >> through fast enough. >> >> Im using the following to create a packet: >> >> ENetPacket* packet = enet_packet_create(message, [allPackets[p].message >> length]+1, ENET_PACKET_FLAG_UNSEQUENCED ); >> enet_peer_send(sPeer, 0, packet); >> >> The server I have running basically acts as a dumb terminal just sending >> back out whatever it receives in. Im only running this locally so I expected >> to get at least 30 packets a second but Im only getting about 10 a second. >> >> Is this typical of enet, or should be able to get alot better performance >> out of it? >> >> Thanks >> Jon >> >> _______________________________________________ >> ENet-discuss mailing list >> [email protected] >> http://lists.cubik.org/mailman/listinfo/enet-discuss >> >> >
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
