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

Add korangar_networking crate #75

Merged
merged 1 commit into from
May 6, 2024
Merged

Add korangar_networking crate #75

merged 1 commit into from
May 6, 2024

Conversation

vE5li
Copy link
Owner

@vE5li vE5li commented Apr 29, 2024

This rework splits the networking system to a separate crate and moves the processing to a networking thread. The main thread will no longer be blocked by networking operations, which was the main reason for the client freezing.

I took this opportunity to also refactor the way that networking routines are handled. Instead of sending a packet and waiting for a response, the request and response are completely decoupled, offering more resilience to packets arriving out of order.

@vE5li vE5li force-pushed the networking-thread branch from a150836 to f69be14 Compare May 6, 2024 15:57
This rework splits the networking system to a separate crate and moves the processing to a networking thread. The main thread will no longer be blocked by networking operations, which was the main reason for the client freezing.

I took this opportunity to also refactor the way that networking routines are handled. Instead of sending a packet and waiting for a response, the request and response are completely decoupled, offering more resilience to packets arriving out of order.
@vE5li vE5li force-pushed the networking-thread branch from f69be14 to b34d6e9 Compare May 6, 2024 16:05
@vE5li vE5li merged commit 344e6a4 into main May 6, 2024
6 checks passed
@vE5li vE5li deleted the networking-thread branch May 6, 2024 16:44
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

Successfully merging this pull request may close these issues.

1 participant