lidgren-network-gen3 icon indicating copy to clipboard operation
lidgren-network-gen3 copied to clipboard

NetQueue concurrency

Open IAbstract opened this issue 2 years ago • 2 comments
trafficstars

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.

IAbstract avatar Dec 02 '22 15:12 IAbstract

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.

lidgren avatar Dec 02 '22 17:12 lidgren

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: @.***>

IAbstract avatar Dec 02 '22 18:12 IAbstract