lsalzman / enet

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

ENet range coder compression optimization? #191

Closed playingoDEERUX closed 2 years ago

playingoDEERUX commented 2 years ago

Hello, any plans on optimizing the ENet compression? It seems that it's the thing causing most of the CPU load when an ENet server handles a ton of packets at once.

Calinou commented 2 years ago

@playingoDEERUX I think providing a profile to see which functions are the most expensive would make it easier to optimize the range coder :slightly_smiling_face:

You can use something like Linux's perf to record on the server, and use Hotspot to display the data.