Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetQueue concurrency #156

Open
IAbstract opened this issue Dec 2, 2022 · 2 comments
Open

NetQueue concurrency #156

IAbstract opened this issue Dec 2, 2022 · 2 comments

Comments

@IAbstract
Copy link

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
Copy link
Owner

lidgren commented Dec 2, 2022

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
Copy link
Author

IAbstract commented Dec 2, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants