* perf: Batching. Batches message into Transport.GetMaxPacketSize sized chunks and sends them every batchInterval
* don't log time
* Transport.GetMaxBatchSize and kcp override it to always use MTU
* remove comment
* NetworkConnectionToClient tests
* Test: Send_BatchesUntilUpdate
* Test: Send_BatchesUntilInterval
* fix: initialize last send time with NetworkTime.time
* better comment
* fixing reset after sending batch
Need to reset both position and length
* revert the transportreceive change for localconnections.
before it didn't work because of the length bug that is fixed now.
* added test to avoid length bug in the future
* optional
* enable batching in benchmark demo for max scale
Co-authored-by: James Frowen <jamesfrowendev@gmail.com>
* Update FAQ with changing transport guide.
* Updated based on suggestions
* Updated FAQ based on Gadget's suggestions
* Updated based on last suggestion
* Add files via upload
In ref. to https://discord.com/channels/343440455738064897/656822943384469504/794611471832449044
* Create HandlingDisconnecting.md
* Update HandlingDisconnecting.md
* Update HandlingDisconnecting.md
* Update HandlingDisconnecting.md
More to the point, less wordy.
* Update HandlingDisconnecting.md
Cleared out reprehensible hyphens.
doc: Add Handling Disconnects doc
- fix: unreliable messages reset timeout now too
- perf: KcpConnection OnCheckEnabled callback changed to a simple 'paused' boolean.
This is faster than invoking a Func<bool> every time and allows us to fix#8 more
easily later by calling .Pause/.Unpause from OnEnable/OnDisable in MirrorTransport.
- fix#8: Unpause now resets timeout to fix a bug where Mirror would pause kcp,
change the scene which took >10s, then unpause and kcp would detect the lack of
any messages for >10s as timeout. Added test to make sure it never happens again.
- MirrorTransport: statistics logging for headless servers
- Mirror Transport: Send/Receive window size increased once more from 2048 to 4096.
* FAQ How to get player count?
* Update FAQ.md
* Update FAQ.md
* Adjusted clarity for example scripts.
Made the code snippets easier to understand based on feedback.
* Update FAQ.md
* Update FAQ.md
Co-authored-by: vis2k <info@noobtuts.com>
this avoids the first line of the stacktrace being on the same line as the Exception. this is better because the Exception line could be line and it is easy to miss the first stack trace line.
* moving FindPath to editor scripts
this allows this function to be used by other scripts
* Update Assets/Mirror/Editor/EditorHelper.cs
* removing extra using