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

Reliable sequenced network delivery method #68

Closed
aienabled opened this issue Jul 21, 2017 · 2 comments
Closed

Reliable sequenced network delivery method #68

aienabled opened this issue Jul 21, 2017 · 2 comments

Comments

@aienabled
Copy link
Contributor

aienabled commented Jul 21, 2017

Currently, LiteNetLib doesn't have the reliable sequenced network delivery method, only unreliable sequenced. Lidgren library has this method and it's very useful.
Was discussed here #67 (comment)

In some cases, it's necessary to have reliable sequenced delivery. For example, health stat - it's very useful to have, reliably, latest health stat value. But it doesn't make sense to use reliable ordered delivery - on poor connections it increases traffic amount due to resending, it also increases lag as fresher packet cannot be used because previous packet(s) not arrived yet, and on very bad connections it could easily lead to traffic overwhelming and network stall - as sometimes health stat need to be updated very often (damaging, health regeneration, etc). Using the reliable sequenced network delivery method will easily resolve the problem and minimize the network traffic.

Also, it will be useful when porting applications/games which are based on Lidgren library.

Regards!

@DanisJoyal
Copy link

Hi,

I guest that it can be done easily by using PacketProperty. 5 bits (21 properties) + 1 bit Fragmented. Maybe add one for multichannel 0x20; or support only 4 channels: 0x60. Easy to do it quickly, maybe not :)

Cheers

@RevenantX
Copy link
Owner

@DanisJoyal this already implemented in almost that way

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

No branches or pull requests

3 participants