lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

NetQueue concurrency #156

Open IAbstract opened 1 year ago

IAbstract commented 1 year ago

Why wouldn't you have used ConcurrentQueue<T> instead of rolling your own (NetQueue<T>)? Asking as I am studying the code base for a deeper understanding of the client/server topography in games.

lidgren commented 1 year ago

As far as I remember it was for performance; ConcurrentQueue was expensive, esp. when uncontested. It was a very long time ago tho; no idea if this is the case today.

IAbstract commented 1 year ago

Thanks for the info. Very helpful!

On Fri, Dec 2, 2022, 11:48 Michael Lidgren @.***> wrote:

As far as I remember it was for performance; ConcurrentQueue was expensive, esp. when uncontested. It was a very long time ago tho; no idea if this is the case today.

— Reply to this email directly, view it on GitHub https://github.com/lidgren/lidgren-network-gen3/issues/156#issuecomment-1335588189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHRCJ3C2WD76CUQCJCC723WLIY7RANCNFSM6AAAAAASSBROPA . You are receiving this because you authored the thread.Message ID: @.***>