lsalzman / enet

ENet reliable UDP networking library
MIT License
2.78k stars 675 forks source link

Can enet support epoll() #205

Open playingoDEERUX opened 2 years ago

playingoDEERUX commented 2 years ago

^^ Question in title, I believe epoll has some great performance/scalability advantages that I would like to see in ENet! Any way that's going to be added in the future?

dimage1 commented 8 months ago

With a small amount of sockets, epoll does not give perf benefits compared to poll. Meaning, for gaming UDP transport, where client or server have normally 1-2 sockets to communicate, there won't be significant epoll advantages. Keep in mind, even with 1000+ clients, UDP server uses the same socket to recv / send data.