vis2k
f4ceb067c9
perf: NetworkTime ExponentialMovingAverage .Value & .Var as fields instead of properties to avoid call overhead
2022-03-12 20:26:40 +08:00
vis2k
d979880c5f
perf: NetworkTime.time inlined
2022-03-12 20:26:20 +08:00
vis2k
18170d16b8
perf: NetworkTime.localTime inlined
2022-03-12 20:26:02 +08:00
vis2k
45e1afc812
perf: inline GetIndexFromFunctionHash because it's called for every RPC
2022-03-12 19:46:00 +08:00
vis2k
5fcbd1d550
perf: CompressVarInt uses WriteByte instead of Write<T> to avoid Action call overhead
2022-03-12 19:20:00 +08:00
vis2k
a868368eca
perf: Rpcs/Cmds functionHash bandwidth reduced from 4 => 2 bytes (with the potential for 1 byte VarInt) ( #3119 )
...
* perf: Rpcs/Cmds functionHash bandwidth reduced from 4 => 2 bytes (with the potential for 1 byte VarInt)
* tests
2022-03-12 18:26:00 +08:00
vis2k
5515eae4e8
perf: HandleRemoteCall passes componentIndex as byte to avoid extra < 0 check
2022-03-11 23:55:35 +08:00
vis2k
b6a9a95572
align NetworkStatistics exactly below NetworkManager HUD
2022-03-11 13:33:36 +08:00
vis2k
3d03146699
feature: NetworkStatistics ( #3118 )
...
* feature: NetworkStatistics
* better UI
2022-03-11 13:29:39 +08:00
vis2k
b100307929
feature: Transport.OnClient/ServerDataSent events += (prepares for NetworkStatistics) ( #3117 )
...
* feature: Transport.OnClient/ServerDataSent events += (prepares for NetworkStatistics)
* comments
2022-03-11 13:19:24 +08:00
vis2k
dc5162099e
feature: allow hooking into Transport events via += -= (prepares for NetworkStatistics) ( #3116 )
2022-03-11 13:10:12 +08:00
vis2k
0499dc0503
Tests: ShutdownCleanup test cleanup to prepare for Transport events += -= hooking
2022-03-10 22:19:21 +08:00
vis2k
e71f0e1cc4
script icons .meta
2022-03-10 20:29:41 +08:00
vis2k
9686c68bb7
base Transport moved to Runtime folder; Transport folder renamed to Transports
2022-03-10 20:25:49 +08:00
vis2k
99c3c0ded6
perf: NetworkConnection.Send() inlining
2022-03-10 19:57:35 +08:00
vis2k
24142b085b
comments
2022-03-10 19:50:08 +08:00
vis2k
3643679ec5
comments
2022-03-10 19:46:42 +08:00
vis2k
70bd831bd8
NetworkWriterPooled moved into separate file
2022-03-10 19:45:37 +08:00
vis2k
d92dbe1572
NetworkReaderPooled moved into separate file
2022-03-10 19:45:03 +08:00
vis2k
0402d31eb2
breaking: PooledNetworkReader/Writer renamed to NetworkReader/WriterPooled
2022-03-10 19:44:13 +08:00
vis2k
f0c9a81c10
breaking: NetworkReader/WriterPool API simplified: GetReader/Writer => Get; Recycle => Return; ( #3112 )
...
* breaking: NetworkReader/WriterPool API simplified: GetReader/Writer => Take; Recycle => Return;
* rename Take() to Get()
* Pool<T> Take() => Get()
2022-03-10 19:37:21 +08:00
vis2k
006efa090e
fix test
2022-03-09 16:40:31 +08:00
vis2k
926761c452
fix test
2022-03-09 16:33:34 +08:00
vis2k
70e40b88b5
test for #3106 OnStartLocalPlayer being called twice from ReplacePlayerForConnection
2022-03-09 16:25:28 +08:00
vis2k
f6df4edaae
fix : #3106 NetworkClient.ChangeOwner now uses .isLocalPlayer flag to check if OnStopLocalPlayer should be called.
...
previously it used localPlayer static identity, but that's error prone because in this case it was set by another function before already. added test to guarantee it never fails again.
2022-03-09 16:21:43 +08:00
vis2k
e2d1ad0b5e
better comment
2022-03-09 16:18:40 +08:00
vis2k
fedb6002b6
not necessary
2022-03-09 16:04:30 +08:00
vis2k
1423bee9d2
comment
2022-03-09 16:03:46 +08:00
vis2k
35ec47d213
Tests: guarantee OnStopLocalPlayer is called when using RemovePlayerForConnection. for #3106
2022-03-09 16:02:24 +08:00
vis2k
5846045122
comments
2022-03-09 15:55:05 +08:00
vis2k
303b66247e
ChangeOwner comments
2022-03-09 15:54:27 +08:00
vis2k
8bef2bf864
TODO
2022-03-09 15:52:07 +08:00
vis2k
c14566c731
comments
2022-03-09 15:51:12 +08:00
vis2k
a34cb00eb2
comment
2022-03-09 15:49:53 +08:00
vis2k
401074fc67
syntax
2022-03-09 15:47:43 +08:00
vis2k
376494e7f5
syntax
2022-03-09 15:46:50 +08:00
vis2k
7e19881630
MIRROR_65_0_OR_NEWER
2022-03-07 20:26:11 +08:00
vis2k
d40b2f6be2
sponsor button
2022-03-07 19:55:01 +08:00
MrGadget
a51bc743a8
syntax
2022-02-26 15:02:16 -05:00
MrGadget
3a1d9822bd
Updated Authenticators
2022-02-26 14:53:25 -05:00
vis2k
66eff281c7
breaking: removed unnecessary 'initialize' parameter from InterestManagement.OnRebuildObservers
2022-02-26 15:26:04 +08:00
MrGadget
c1e05d9df4
fix: NetworkAuthenticator methods virtual
...
- abstract throws an error for derived classes that wrap server methods in UNITY_SERVER or similar as missing required override.
2022-02-25 09:47:35 -05:00
MrGadget
44dfce94b1
fix: Chat Example Authenticator
2022-02-24 08:22:33 -05:00
MrGadget
a88b03739f
fix: NetworkConnectionToClient in Authenticators
2022-02-23 14:57:25 -05:00
Robin Rolf
d67dc74bbd
feat: Allow generic NetworkBehaviour<T> subclasses ( #3073 )
...
* feat: Allow generic NetworkBehaviour subclasses
It's only generic SyncVars (via attribute) and rpcs/cmds we don't want to deal with and that aren't supported.
Even generic SyncVar<T> works
* Generate IL2CPP compatible base calls
see cf91e1d547
* Make SyncVar field/hook references generic too
Fixes bad IL
* Update Extensions.cs
* Update Assets/Mirror/Editor/Weaver/Extensions.cs
Co-authored-by: vis2k <info@noobtuts.com>
2022-02-23 12:50:15 +08:00
James Clancey
7670271bf1
fix: Android multicast Discovery. Fixes #2878 ( #2887 )
...
* Added Android multicast support for Discovery Fixes #2878
This will add support for turning on and off Multicast for Android devices.
It also contains an Android manifest editor that will add the appropriate permissions.
* Reset the lock state once you end it.
* Update NetworkDiscoveryBase.cs
* Update AndroidManifestHelper.cs
Co-authored-by: vis2k <info@noobtuts.com>
2022-02-17 19:39:20 +08:00
vis2k
c804efd731
ClientSceneTests: remove redundant ApplyPayload tests. we have higher level (and more simple) tests that already guarantee this.
2022-02-17 13:08:15 +08:00
vis2k
1bbd2bbad7
MirrorTest: CreateNetworkedAndSpawnPlayer<T, U>
2022-02-17 12:55:31 +08:00
vis2k
d91f43a486
MirrorTest: guarantee isServer/isClient
2022-02-17 00:02:49 +08:00
vis2k
a07eb1bbba
Tests: use explicit NetworkConnectionToClient
2022-02-17 00:02:02 +08:00