[ENet-discuss] Enet Lag
little.coding.fox at gmail.com
Mon May 4 06:58:25 PDT 2009
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 <
jonathan.hodgkinson at gmail.com> wrote:
> 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?
> ENet-discuss mailing list
> ENet-discuss at cubik.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ENet-discuss