MirrorNetworking / MirrorNetworking/Mirror

Configuration Questions

Open
#4,075 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.3k
Forks
870
PR merge metrics
No merged PRs in 30d

Description

hello again, i dont have discord( a bit old fasioned) so i ask my questions here
im using mirror v96.8.4 with kcp transport
have couple of questions
1-if i limit my Network Manager send rate to 30 on headless server each network loop will take 33 ms there for kcp interval lower than 33 ms is useless am i right?
even with fast mode enable the max rto of a segment before a deadlink will take 9 seconds(calculated using this formula with nodelay enabled)

// line  867 of KCP.cs
// rx_rto is clamped between 30 and 60000ms when nodelay==1
                    else
                    {
                        int step = (nodelay < 2) ? segment.rto : rx_rto;
                        segment.rto += step / 2;
                    }
                    segment.resendts = current + (uint)segment.rto;

than why did you guys double the deadlink and left this comment =>// default prematurely disconnects a lot of people (#3022). use 2x.?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with KCP.cs around line 867 and the Network Manager send-rate setting, using the reported Mirror v96.8.4 configuration with KCP transport. Verify how the network loop interval, KCP interval, RTO, and deadlink behavior relate, then document the answers and clarify the deadlink comment; implementation scope is not defined by the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
networking
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.