lsalzman / enet

ENet reliable UDP networking library
MIT License
2.71k stars 669 forks source link

Any way of combining ENetPackets? #189

Closed playingoDEERUX closed 2 years ago

playingoDEERUX commented 2 years ago

Hello, I wanted to ask if there is any way to combine multiple ENetPacket's into one so that you only have to do a single enet_peer_send to queue and send out multiple ENetPacket's without having to implement this on your own and without calling enet_peer_send or enet_queue_outgoing_commands more than once...

Is there anything such? I would need this to optimize performance drastically in a specific case where a game that doesn't support reading multiple packets from 1 ENetPacket in a specific type of message...

As always, help is appreciated.