-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Comments are very sparse #181
Comments
Looking at the bevy adapter is made a bit more difficult by this as well, the example helps but doc comments would be tremendously useful. |
Naia looks great, and I'm excited to get it working in my project. However, I'm finding it to be quite difficult to adopt Naia due to the lack of documentation. Even simple user-facing things have no explanation. For example: pub struct ReliableSettings {
pub rtt_resend_factor: f32,
} What does this actually do? I can guess that it's somehow related to round-trip-times and resend cadence, but what is the factor multiplied against? Why is the default // ChannelMode
pub enum ChannelMode {
UnorderedUnreliable,
SequencedUnreliable,
UnorderedReliable(ReliableSettings),
SequencedReliable(ReliableSettings),
OrderedReliable(ReliableSettings),
TickBuffered(TickBufferSettings),
}
Etc. Etc. Just little one line explanations would be a huge improvement here. Yes, we can see some of these things being used in the demos, but that doesn't shed any light on "why". If you want to build something different than the demo, your only option is to read and understand the naia source directly, which is more difficult because of the lack of "what are we doing and why?" comments. Thanks for writing naia! A little help wrapping my head around its usage would be most welcome though :) |
Hey there @dubrowgn , thanks for checking You may find this online guide written by @snen helpful: https://blog.snen.dev/building-with-bevy/03-integrating-online-networking As far as the questions you listed: ReliableChannels resend messages at an interval until they receive a receipt of delivery. That interval is equal to (
Anyway, hope all goes well with your project! |
@connorcarpenter, that's great! I have actually seen that video before (it's filled with loads of great stuff), I just didn't realize that's what This has already been very helpful because I had previously assumed |
This isn't exactly useful.
The text was updated successfully, but these errors were encountered: